- Fixed a bug within table's name output of Insert and Update where old code was causing a crash.
This commit is contained in:
parent
026a0f4f83
commit
2c7449b733
|
@ -26,13 +26,8 @@ class Insert extends Fragment {
|
||||||
static::SQL_TOKEN,
|
static::SQL_TOKEN,
|
||||||
( $this->priority ?? false ),
|
( $this->priority ?? false ),
|
||||||
( $this->ignore ? 'IGNORE' : false ),
|
( $this->ignore ? 'IGNORE' : false ),
|
||||||
'INTO', $this->renderTable(),
|
'INTO', $this->table,
|
||||||
"(" . implode(',', $this->fieldlist) . ")",
|
"(" . implode(',', $this->fieldlist) . ")",
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function renderTable() : string
|
|
||||||
{
|
|
||||||
return "`$this->table`";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,12 +24,7 @@ class Update extends Fragment {
|
||||||
'UPDATE',
|
'UPDATE',
|
||||||
( $this->priority ?? false ),
|
( $this->priority ?? false ),
|
||||||
( $this->ignore ? 'IGNORE' : false ),
|
( $this->ignore ? 'IGNORE' : false ),
|
||||||
$this->renderTable(),
|
$this->table,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function renderTable() : string
|
|
||||||
{
|
|
||||||
return "`$this->table`";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue