diff options
Diffstat (limited to 'src/backenddb/plugin_merchantdb_postgres.c')
-rw-r--r-- | src/backenddb/plugin_merchantdb_postgres.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c index 75e9f3cf..cb05eebe 100644 --- a/src/backenddb/plugin_merchantdb_postgres.c +++ b/src/backenddb/plugin_merchantdb_postgres.c @@ -322,7 +322,7 @@ postgres_initialize (void *cls) " WHERE" " timestamp<$1" " AND merchant_pub=$2" - " ORDER BY timestamp DESC, row_id DESC" + " ORDER BY row_id DESC, timestamp DESC" " LIMIT $3", 3); @@ -337,7 +337,7 @@ postgres_initialize (void *cls) " timestamp<$1" " AND merchant_pub=$2" " AND row_id<$3" - " ORDER BY timestamp DESC, row_id DESC" + " ORDER BY row_id DESC, timestamp DESC" " LIMIT $4", 4); |