- Added the replace keyword

This commit is contained in:
Dave Mc Nicoll committed 2021-08-02 15:13:17 +00:00
1 parent 7fb591e1f5
commit 0453e9cbc5
4 files changed
+45 -17

No files matched your search

+3 -2
View File
@@ -64,7 +64,7 @@ class QueryBuilder implements Query\QueryBuilderInterface
return $this;
}
public function insert(array $fieldlist, string $table, ? string $alias = null, ? string $database = null, ? string $schema = null) : self
public function insert(array $fieldlist, string $table, ? string $alias = null, ? string $database = null, ? string $schema = null, bool $replace = false) : self
{
if ( null === $this->getFragment(Query\Insert::class) ) {
if ( $schema ) {
@@ -77,7 +77,8 @@ class QueryBuilder implements Query\QueryBuilderInterface
$insert = new Query\Insert();
$this->push($insert);
$insert->replace = $replace;
$insert->fieldlist = $fieldlist;
$insert->alias = $alias;
$insert->table = $table;