Running the testsuite for sqlite database there are a lot of errors
Error: unable to open database "sites/dev/files/unish.sqlite": unable to open database file
which is fixed through mkdir in _drush_sql_create
and next for the test testSqlConnect
sqlite3: Error: too many options: -e "select name from users where uid = 1;"
After some hours spend :( it came down to being unable to use the non existing give path.
Attached patch has some code style fixes for drush.sql.inc
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | drush.sql_.2014519-2.patch | 3.57 KB | helmo |
| drush-sqlite-restore-database.patch | 4.47 KB | clemens.tolboom |
Comments
Comment #1
clemens.tolboomXREF
#1386440: Test for valid DB parameters immediately when using --db-url with arr
Comment #2
helmo commentedHere's an updated patch ... now also included in https://github.com/helmo/drush/pull/2 to let travis test it.
The code cleanup from this patch was moved to: #2034731: Collected code style fixes
Comment #3
moshe weitzman commentedCommitted to 6. Does not apply cleanly to 5.
Comment #4
helmo commentedAny reason why you've only committed the changes to tests/sqlConnectTest.php and not commands/sql/sql.drush.inc?
The pull request has been rebased: https://travis-ci.org/helmo/drush/builds/8839622
Comment #5
moshe weitzman commentedCommitted. Sorry about that.