summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-10-22 14:00:50 +0200
committerChristian Grothoff <christian@grothoff.org>2022-10-22 14:00:50 +0200
commitc4bbc4ac566c3e5f32f40b0db6326bfa68e756c9 (patch)
treeb3586231fe97343e69f9534f98ea0aad200cfb21 /src
parent1435e5627e39bf2067cad0cdc1d8220a9a01863a (diff)
downloadexchange-c4bbc4ac566c3e5f32f40b0db6326bfa68e756c9.tar.gz
exchange-c4bbc4ac566c3e5f32f40b0db6326bfa68e756c9.tar.bz2
exchange-c4bbc4ac566c3e5f32f40b0db6326bfa68e756c9.zip
fix column name
Diffstat (limited to 'src')
-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: