core-lightning/db
Alex Myers a9eb17adf9 db: catch postgres error on uninitialized database
Avoids the following when postgres returns no query result:
==63458== Conditional jump or move depends on uninitialised value(s)
==63458==    at 0x226A1F: db_postgres_step (db_postgres.c:156)
==63458==    by 0x22535B: db_step (utils.c:155)
==63458==    by 0x1E089A: db_data_version_get (exec.c:49)
==63458==    by 0x194F6F: db_setup (db.c:1029)
==63458==    by 0x199A2F: wallet_new (wallet.c:101)
==63458==    by 0x154B70: main (lightningd.c:1035)

Changelog-None
2023-01-31 10:25:25 +10:30
..
bindings.c wallet: use scid not string for failchannel (now failscid) in payments table. 2022-09-22 15:19:46 +02:00
bindings.h wallet: use scid not string for failchannel (now failscid) in payments table. 2022-09-22 15:19:46 +02:00
common.h database: pull out database code into a new module 2022-03-05 15:03:34 +10:30
db_postgres.c db/postgres: avoid memleak. 2022-09-22 15:19:46 +02:00
db_sqlite3.c db: fix sqlite3 code which manipulates columns. 2022-09-12 14:00:41 +02:00
exec.c db: catch postgres error on uninitialized database 2023-01-31 10:25:25 +10:30
exec.h database: pull out database code into a new module 2022-03-05 15:03:34 +10:30
Makefile database: pull out database code into a new module 2022-03-05 15:03:34 +10:30
utils.c db: fix sqlite3 code which manipulates columns. 2022-09-12 14:00:41 +02:00
utils.h db: fix sqlite3 code which manipulates columns. 2022-09-12 14:00:41 +02:00