aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb/pg_lookup_serial_by_table.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/exchangedb/pg_lookup_serial_by_table.c')
-rw-r--r--src/exchangedb/pg_lookup_serial_by_table.c21
1 files changed, 6 insertions, 15 deletions
diff --git a/src/exchangedb/pg_lookup_serial_by_table.c b/src/exchangedb/pg_lookup_serial_by_table.c
index 2e3b41304..0bf0b9718 100644
--- a/src/exchangedb/pg_lookup_serial_by_table.c
+++ b/src/exchangedb/pg_lookup_serial_by_table.c
@@ -426,23 +426,14 @@ TEH_PG_lookup_serial_by_table (void *cls,
" LIMIT 1;");
statement = "select_serial_by_table_purse_deletion";
break;
- case TALER_EXCHANGEDB_RT_WITHDRAW_AGE_COMMITMENTS:
- XPREPARE ("select_serial_by_table_age_withdraw_commitments",
+ case TALER_EXCHANGEDB_RT_AGE_WITHDRAW:
+ XPREPARE ("select_serial_by_table_age_withdraw",
"SELECT"
- " age_withdraw_commitment_id AS serial"
- " FROM age_withdraw_commitments"
- " ORDER BY age_withdraw_commitment_id DESC"
+ " age_withdraw_id AS serial"
+ " FROM age_withdraw"
+ " ORDER BY age_withdraw_id DESC"
" LIMIT 1;");
- statement = "select_serial_by_table_age_withdraw_commitments";
- break;
- case TALER_EXCHANGEDB_RT_WITHDRAW_AGE_REVEALED_COINS:
- XPREPARE ("select_serial_by_table_age_withdraw_revealed_coins",
- "SELECT"
- " age_withdraw_revealed_coins_id AS serial"
- " FROM age_withdraw_revealed_coins"
- " ORDER BY age_withdraw_revealed_coins_id DESC"
- " LIMIT 1;");
- statement = "select_serial_by_table_age_withdraw_revealed_coins";
+ statement = "select_serial_by_table_age_withdraw";
break;
}
if (NULL == statement)