Commit a13d98a
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 412fc4e commit a13d98a
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
206 | 210 | | |
207 | 211 | | |
208 | 212 | | |
| |||
397 | 401 | | |
398 | 402 | | |
399 | 403 | | |
400 | | - | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
401 | 409 | | |
402 | 410 | | |
403 | 411 | | |
| |||
0 commit comments