mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-03 13:14:22 +01:00
`db_select_prepare` was prepending the "SELECT" part in an attempt to limit its use to read-only statements. This is leads to the queries in the code not actually being well-formed, which we'll need in a later commit, and was also resulting in extra allocations. This switches the behavior to just enforce a "SELECT" prefix being present which allows us to have well-formed queries in the code again and avoids the extra allocation. Signed-off-by: Christian Decker <decker.christian@gmail.com>