From 2c7449b73388f65245cdbfb92d438f3ddd914d90 Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Tue, 14 Apr 2020 10:32:41 -0400 Subject: [PATCH] - Fixed a bug within table's name output of Insert and Update where old code was causing a crash. --- src/Query/Insert.php | 7 +------ src/Query/Update.php | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) 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`"; - } }