Prevent sql_on_all_attached_db() from indicating success and simultaneously returning bogus SQL in the case where there are no attached DBs beyond main or temp -- this does occur in the regression tests and might occur on an unconfigured system.
modified libpkg/pkgdb.c
@@ -3003,7 +3003,7 @@ sql_on_all_attached_db(sqlite3 *s, struct sbuf *sql, const char *multireposql,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -3021,11 +3021,10 @@ sql_on_all_attached_db(sqlite3 *s, struct sbuf *sql, const char *multireposql,
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
| - | |
| - | |
| - | |
|
|
|
|
|
@@ -3033,7 +3032,11 @@ sql_on_all_attached_db(sqlite3 *s, struct sbuf *sql, const char *multireposql,
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|