summaryrefslogtreecommitdiffstats
path: root/store/sql_post_store.go
diff options
context:
space:
mode:
authorJason Rossman <Jason_Rossman@playstation.sony.com>2015-08-26 15:59:54 -0600
committerJason Rossman <Jason_Rossman@playstation.sony.com>2015-08-26 15:59:54 -0600
commit4aafff7f83359531cb2e110f4b7c080e33407cc3 (patch)
tree14d48cb278fd263318da9390e50f91092fe4ccb5 /store/sql_post_store.go
parent378f0b52c10d3b9dc670da34a0043b7e05f3e93c (diff)
downloadchat-4aafff7f83359531cb2e110f4b7c080e33407cc3.tar.gz
chat-4aafff7f83359531cb2e110f4b7c080e33407cc3.tar.bz2
chat-4aafff7f83359531cb2e110f4b7c080e33407cc3.zip
Fix getParentsPosts for postgresql
Diffstat (limited to 'store/sql_post_store.go')
-rw-r--r--store/sql_post_store.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/store/sql_post_store.go b/store/sql_post_store.go
index 479caf838..81405c620 100644
--- a/store/sql_post_store.go
+++ b/store/sql_post_store.go
@@ -343,6 +343,7 @@ func (s SqlPostStore) getParentsPosts(channelId string, offset int, limit int) S
WHERE
ChannelId = :ChannelId1
AND DeleteAt = 0
+ AND RootId <> ''
ORDER BY CreateAt DESC
LIMIT :Limit OFFSET :Offset) q3) q1 ON q1.RootId = q2.RootId
WHERE