- Fixed a bug within table's name output of Insert and Update where old code was causing a crash.

This commit is contained in:
Dave Mc Nicoll 2020-04-14 10:32:41 -04:00
parent 026a0f4f83
commit 2c7449b733
2 changed files with 2 additions and 12 deletions

View File

@ -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`";
}
}

View File

@ -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`";
}
}