Skip to content

Commit c7bf44c

Browse files
committed
SqlPreprocessor: escapes primary value of IRow [Closes #144]
1 parent 9efb63c commit c7bf44c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Database/SqlPreprocessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ private function formatValue($value, $mode = NULL)
135135
return 'NULL';
136136

137137
} elseif ($value instanceof Table\IRow) {
138-
return $value->getPrimary();
138+
return $this->formatValue($value->getPrimary());
139139

140140
} elseif ($value instanceof SqlLiteral) {
141141
$prep = clone $this;

0 commit comments

Comments
 (0)