lnd/sqldb/sqlc
Andras Banki-Horvath 043e4aff01
sqldb+invoices: fix ordering bug in FilterInvoices
Previously if the `reverse` named arg was unset (value of NULL), then
SQL would order by NULL instead of ID causing undifined ordering of the
returned rows. To fix that we check for NULL and also make sure to set
the `reverse` arg in the code explicitly as it in the generated code it
is an `interface{}` instead of `bool`.
2024-04-11 15:04:04 +02:00
..
migrations sqldb: simplify and fixup the existing invoice store schema and queries 2024-03-01 10:08:07 +01:00
queries sqldb+invoices: fix ordering bug in FilterInvoices 2024-04-11 15:04:04 +02:00
amp_invoices.sql.go sqldb: simplify and fixup the existing invoice store schema and queries 2024-03-01 10:08:07 +01:00
db.go tools: update sqlc version to v1.25.0 2024-03-01 10:08:07 +01:00
invoice_events.sql.go sqldb: simplify and fixup the existing invoice store schema and queries 2024-03-01 10:08:07 +01:00
invoices.sql.go sqldb+invoices: fix ordering bug in FilterInvoices 2024-04-11 15:04:04 +02:00
models.go sqldb: simplify and fixup the existing invoice store schema and queries 2024-03-01 10:08:07 +01:00
querier.go sqldb: simplify and fixup the existing invoice store schema and queries 2024-03-01 10:08:07 +01:00