summaryrefslogtreecommitdiff
path: root/src/database/QueryUtils.java
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2014-06-02 11:32:39 +0200
committerPeter Wu <peter@lekensteyn.nl>2014-06-02 12:15:36 +0200
commit71cdb034f1f1218874d46cb57adac02d60793050 (patch)
tree55066661e4163e456a7f88353453827df21ed1de /src/database/QueryUtils.java
parentc082d381d318721051b7ebac5c85ad9ef61969b1 (diff)
downloadDatafiller-71cdb034f1f1218874d46cb57adac02d60793050.tar.gz
Replace reply(user)id by replytweetid
Diffstat (limited to 'src/database/QueryUtils.java')
-rw-r--r--src/database/QueryUtils.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/database/QueryUtils.java b/src/database/QueryUtils.java
index dac3ffc..4af6c09 100644
--- a/src/database/QueryUtils.java
+++ b/src/database/QueryUtils.java
@@ -22,7 +22,7 @@ public class QueryUtils {
= buildQuery("tweet", new String[]{"tweetid"},
"tweetid", "createdat::timestamptz", "favcount", "retweetcount",
"text", "coordinates::point",
- "language", "retweetid", "replyid", "place",
+ "language", "retweetid", "replytweetid", "place",
"userid");
public final static String insertHash
@@ -113,10 +113,10 @@ public class QueryUtils {
} else {
tweetStatement.setLong("retweetid", null);
}
- if (tweet.in_reply_to_user_id != null) {
- tweetStatement.setLong("replyid", tweet.in_reply_to_user_id);
+ if (tweet.in_reply_to_status_id != null) {
+ tweetStatement.setLong("replytweetid", tweet.in_reply_to_status_id);
} else {
- tweetStatement.setLong("replyid", null);
+ tweetStatement.setLong("replytweetid", null);
}
// TODO: place is not a string...
if (tweet.place != null) {