Skip to content
Snippets Groups Projects
Commit bf48d498 authored by Alex Pott's avatar Alex Pott
Browse files

Revert "Issue #2427875 by daffie: SQLite Insert query does not account for INSERT FROM ... SELECT"

This reverts commit d1a9a099.
parent 9e212304
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -22,7 +22,7 @@ public function execute() {
if (!$this->preExecute()) {
return NULL;
}
if (count($this->insertFields) || !empty($this->fromQuery)) {
if (count($this->insertFields)) {
return parent::execute();
}
else {
......@@ -35,10 +35,7 @@ public function __toString() {
$comments = $this->connection->makeComment($this->comments);
// Produce as many generic placeholders as necessary.
$placeholders = array();
if (!empty($this->insertFields)) {
$placeholders = array_fill(0, count($this->insertFields), '?');
}
$placeholders = array_fill(0, count($this->insertFields), '?');
// If we're selecting from a SelectQuery, finish building the query and
// pass it back, as any remaining options are irrelevant.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment