Commit 2c88a128 authored by alexpott's avatar alexpott

Issue #2350461 by mradcliffe, chx, David_Rothstein: Fixed issues with...

Issue #2350461 by mradcliffe, chx, David_Rothstein: Fixed issues with UpdateComplexTest in PostgreSQL driver.
parent f33b5103
......@@ -9,6 +9,7 @@
use Drupal\Core\Database\Database;
use Drupal\Core\Database\Query\Update as QueryUpdate;
use Drupal\Core\Database\Query\SelectInterface;
class Update extends QueryUpdate {
......@@ -36,6 +37,13 @@ public function execute() {
$stmt->bindParam($placeholder, $data['arguments'][$placeholder]);
}
}
if ($data['expression'] instanceof SelectInterface) {
$data['expression']->compile($this->connection, $this);
$select_query_arguments = $data['expression']->arguments();
foreach ($select_query_arguments as $placeholder => $argument) {
$stmt->bindParam($placeholder, $select_query_arguments[$placeholder]);
}
}
unset($fields[$field]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment