File tree Expand file tree Collapse file tree 5 files changed +72
-215
lines changed
Expand file tree Collapse file tree 5 files changed +72
-215
lines changed Original file line number Diff line number Diff line change 4949- Enh #324 : Refactor ` Command::insertWithReturningPks() ` method (@Tigrov )
5050- Enh #325 : Refactor ` DMLQueryBuilder::upsert() ` method (@Tigrov )
5151- Chg #326 : Add alias in ` DQLQueryBuilder::selectExists() ` method for consistency with other DBMS (@Tigrov )
52+ - Enh #327 : Refactor constraints (@Tigrov )
5253- Chg #330 : Rename ` insertWithReturningPks() ` to ` insertReturningPks() ` in ` Command ` and ` DMLQueryBuilder ` classes (@Tigrov )
5354
5455## 1.3.0 March 21, 2024
Original file line number Diff line number Diff line change @@ -80,9 +80,9 @@ public function upsert(
8080 $ quotedTableName = $ this ->quoter ->quoteTableName ($ table );
8181
8282 foreach ($ constraints as $ constraint ) {
83- $ columnNames = ( array ) $ constraint ->getColumnNames ();
83+ $ columnNames = $ constraint ->getColumnNames ();
8484 $ constraintCondition = ['and ' ];
85- /** @psalm-var string[] $columnNames */
85+
8686 foreach ($ columnNames as $ name ) {
8787 $ quotedName = $ this ->quoter ->quoteColumnName ($ name );
8888 $ constraintCondition [] = "$ quotedTableName. $ quotedName= \"EXCLUDED \". $ quotedName " ;
You can’t perform that action at this time.
0 commit comments