Skip to content
This repository was archived by the owner on May 12, 2022. It is now read-only.

Commit cb3e2e5

Browse files
author
Nik Barham
committed
QueryBuilder: SqlStrings handled incorrectly in column data for insert/update
1 parent 1bed3da commit cb3e2e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Automatorm/Database/QueryBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,8 @@ public function resolveColumnData()
313313
{
314314
$column = [];
315315
foreach ($this->set as $col => $value) {
316-
if (is_array($value)) {
317-
316+
if ($value instanceof SqlString) {
317+
$column[] = $this->escapeColumn($col) . ' = ' . $value;
318318
} else {
319319
$column[] = $this->escapeColumn($col) . ' = ?';
320320
$this->data[] = $this->resolveValue($value);

0 commit comments

Comments
 (0)