diff --git a/src/Query/Insert.php b/src/Query/Insert.php index e1b9083..867d488 100644 --- a/src/Query/Insert.php +++ b/src/Query/Insert.php @@ -26,13 +26,8 @@ class Insert extends Fragment { static::SQL_TOKEN, ( $this->priority ?? false ), ( $this->ignore ? 'IGNORE' : false ), - 'INTO', $this->renderTable(), + 'INTO', $this->table, "(" . implode(',', $this->fieldlist) . ")", ]); } - - protected function renderTable() : string - { - return "`$this->table`"; - } } diff --git a/src/Query/Update.php b/src/Query/Update.php index dfd0050..1e75c53 100644 --- a/src/Query/Update.php +++ b/src/Query/Update.php @@ -24,12 +24,7 @@ class Update extends Fragment { 'UPDATE', ( $this->priority ?? false ), ( $this->ignore ? 'IGNORE' : false ), - $this->renderTable(), + $this->table, ]); } - - protected function renderTable() : string - { - return "`$this->table`"; - } }