Quantcast
Viewing all articles
Browse latest Browse all 295557

SQLite Insert query does not account for INSERT FROM ... SELECT.

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

Testing
php ./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.


Viewing all articles
Browse latest Browse all 295557