diff options
author | Jason Rossman <Jason_Rossman@playstation.sony.com> | 2015-08-26 15:59:54 -0600 |
---|---|---|
committer | Jason Rossman <Jason_Rossman@playstation.sony.com> | 2015-08-26 15:59:54 -0600 |
commit | 4aafff7f83359531cb2e110f4b7c080e33407cc3 (patch) | |
tree | 14d48cb278fd263318da9390e50f91092fe4ccb5 /store/sql_post_store.go | |
parent | 378f0b52c10d3b9dc670da34a0043b7e05f3e93c (diff) | |
download | chat-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.go | 1 |
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 |