mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-14 03:24:34 +01:00
We were implicitly relying on sqlite3 behavior that returns the zero-value for nulled fields when accessing them. This adds the same behavior explicitly to the DB abstraction in order to reduce `db_column_is_null` checks in the logic, but still make it evident what is happening here. Fixes https://github.com/fiatjaf/mcldsp/issues/1 Signed-off-by: Christian Decker <@cdecker>