Commit 04a7867
committed
db_sqlite: Fix interaction with sql_cacher
The .query API endpoint in db/db.h is meant to return 0 on success, yet
the current implementation in db_sqlite was returning "number of rows"
on success, leading to:
ERROR:sql_cacher:load_entire_table: Failure to issue query to SQL DB...
ERROR:sql_cacher:cache_init_load: Failed to cache the entire table...
(cherry picked from commit 5abc95a)1 parent 7f4fa3a commit 04a7867
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
196 | 200 | | |
197 | 201 | | |
198 | 202 | | |
| |||
384 | 388 | | |
385 | 389 | | |
386 | 390 | | |
387 | | - | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
388 | 396 | | |
389 | 397 | | |
390 | 398 | | |
| |||
0 commit comments