We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb3ff4c commit 28d3659Copy full SHA for 28d3659
src/Builder/Insert.php
@@ -212,7 +212,8 @@ public function __toString() {
212
*/
213
private function buildUpdate() {
214
$queryArr = array();
215
- $tableFields = $this->db()->getTableFields($this->table);
+ $tableName = $this->aliasReplacer()->replace($this->table);
216
+ $tableFields = $this->db()->getTableFields($tableName);
217
if(!empty($this->update)) {
218
$queryArr[] = "ON DUPLICATE KEY UPDATE\n";
219
$updateArr = array();
0 commit comments