- Added the replace keyword
This commit is contained in:
1 parent
7fb591e1f5
commit
0453e9cbc5
4 files changed
+45
-17
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user