updated core to 7.80
This commit is contained in:
@@ -23,7 +23,7 @@ class InsertQuery_sqlite extends InsertQuery {
|
||||
if (!$this->preExecute()) {
|
||||
return NULL;
|
||||
}
|
||||
if (count($this->insertFields)) {
|
||||
if (count($this->insertFields) || !empty($this->fromQuery)) {
|
||||
return parent::execute();
|
||||
}
|
||||
else {
|
||||
@@ -36,7 +36,10 @@ class InsertQuery_sqlite extends InsertQuery {
|
||||
$comments = $this->connection->makeComment($this->comments);
|
||||
|
||||
// Produce as many generic placeholders as necessary.
|
||||
$placeholders = array_fill(0, count($this->insertFields), '?');
|
||||
$placeholders = array();
|
||||
if (!empty($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.
|
||||
|
||||
Reference in New Issue
Block a user