db: Switch statement lookup to use the original query instead

Using a generated identifier with filename and line proved to be brittle since
compilers assign the __LINE__ macro differently on multi-line macro
invocations.

Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
Christian Decker
2019-09-05 16:08:54 +02:00
committed by Rusty Russell
parent 3df8ccd3e0
commit 640e64cb73
4 changed files with 4 additions and 4 deletions

View File

@@ -55,7 +55,7 @@ enum db_binding_type {
struct db_binding {
enum db_binding_type type;
union {
int i;
s32 i;
u64 u64;
const char* text;
const u8 *blob;