aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/exchangedb/pg_lookup_serial_by_table.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/exchangedb/pg_lookup_serial_by_table.c b/src/exchangedb/pg_lookup_serial_by_table.c
index 8dc6e061a..b8d254791 100644
--- a/src/exchangedb/pg_lookup_serial_by_table.c
+++ b/src/exchangedb/pg_lookup_serial_by_table.c
@@ -128,9 +128,9 @@ TEH_PG_lookup_serial_by_table (void *cls,
case TALER_EXCHANGEDB_RT_RESERVES_OPEN_DEPOSITS:
XPREPARE ("select_serial_by_table_reserves_open_deposits",
"SELECT"
- " open_request_uuid AS serial"
+ " reserve_open_deposit_uuid AS serial"
" FROM reserves_open_deposits"
- " ORDER BY open_request_uuid DESC"
+ " ORDER BY reserve_open_deposit_uuid DESC"
" LIMIT 1;");
break;
case TALER_EXCHANGEDB_RT_RESERVES_OUT: