summaryrefslogtreecommitdiff
path: root/src/mintdb/plugin_mintdb_postgres.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mintdb/plugin_mintdb_postgres.c')
-rw-r--r--src/mintdb/plugin_mintdb_postgres.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mintdb/plugin_mintdb_postgres.c b/src/mintdb/plugin_mintdb_postgres.c
index ee63b006d..fc204f5e2 100644
--- a/src/mintdb/plugin_mintdb_postgres.c
+++ b/src/mintdb/plugin_mintdb_postgres.c
@@ -954,7 +954,7 @@ postgres_prepare (PGconn *db_conn)
" WHERE"
" tiny=false AND"
" done=false"
- " ORDER BY execution_time ASC"
+ " ORDER BY wire_deadline ASC"
" LIMIT 1;",
0, NULL);
@@ -977,7 +977,7 @@ postgres_prepare (PGconn *db_conn)
" merchant_pub=$1 AND"
" h_wire=$2 AND"
" done=false"
- " ORDER BY execution_time ASC"
+ " ORDER BY wire_deadline ASC"
" LIMIT $3",
3, NULL);