mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
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:
committed by
Rusty Russell
parent
3df8ccd3e0
commit
640e64cb73
@@ -77,7 +77,7 @@ def extract_queries(pofile):
|
||||
query = c[i][7:][:-1]
|
||||
|
||||
queries.append({
|
||||
'name': name,
|
||||
'name': query,
|
||||
'query': query,
|
||||
'placeholders': query.count('?'),
|
||||
'readonly': "true" if query.upper().startswith("SELECT") else "false",
|
||||
|
||||
Reference in New Issue
Block a user