SQLite Insert
query does not account for INSERT FROM ... SELECT
.
The driver-specific optimization for DEFAULT VALUES
incorrectly kicks-in, because $this->insertFields
is empty.
Solution
- Update the SQLite Insert driver
Testingphp ./scripts/run-tests.sh --dburl sqlite://localhost/sqlite/db.sqlite --file core/modules/system/src/Tests/Database/InsertTest.php
There should be no fails and no exceptions.
Commit credits
Please give @sun commit credits for this issue. All the code from the patch from the first comment is originally written by @sun.