#496500 follow-up by Damien Tournoud: Fixed PostgreSQL and SQLite.
parent
b4786ff0ee
commit
7d1a9b8d3d
|
|
@ -158,7 +158,7 @@ class UpdateQuery_pgsql extends UpdateQuery {
|
|||
}
|
||||
|
||||
if (count($this->condition)) {
|
||||
$this->condition->compile($this->connection);
|
||||
$this->condition->compile($this->connection, $this);
|
||||
|
||||
$arguments = $this->condition->arguments();
|
||||
foreach ($arguments as $placeholder => &$value) {
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ class UpdateQuery_sqlite extends UpdateQuery {
|
|||
}
|
||||
}
|
||||
if (count($condition)) {
|
||||
$condition->compile($this->connection);
|
||||
$condition->compile($this->connection, $this);
|
||||
$this->condition->where((string) $condition, $condition->arguments());
|
||||
}
|
||||
return parent::execute();
|
||||
|
|
|
|||
Loading…
Reference in New Issue