Skip to content

Commit a5dc36c

Browse files
committed
fix for #427 dont enclose fields into `` if it has a relation
1 parent 60b7054 commit a5dc36c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

MysqliDb.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1253,7 +1253,11 @@ public function _buildDataPairs($tableData, $tableColumns, $isInsert)
12531253
$value = $tableData[$column];
12541254

12551255
if (!$isInsert) {
1256-
$this->_query .= "`" . $column . "` = ";
1256+
if(strpos($column,'.')===false) {
1257+
$this->_query .= "`" . $column . "` = ";
1258+
} else {
1259+
$this->_query .= str_replace('.','.`',$column) . "` = ";
1260+
}
12571261
}
12581262

12591263
// Subquery value

0 commit comments

Comments
 (0)