Skip to content

Commit 28d3659

Browse files
committed
Changed the internal behavior of aliasReplacer
1 parent fb3ff4c commit 28d3659

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Builder/Insert.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ public function __toString() {
212212
*/
213213
private function buildUpdate() {
214214
$queryArr = array();
215-
$tableFields = $this->db()->getTableFields($this->table);
215+
$tableName = $this->aliasReplacer()->replace($this->table);
216+
$tableFields = $this->db()->getTableFields($tableName);
216217
if(!empty($this->update)) {
217218
$queryArr[] = "ON DUPLICATE KEY UPDATE\n";
218219
$updateArr = array();

0 commit comments

Comments
 (0)