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 49
49
- Enh #324 : Refactor ` Command::insertWithReturningPks() ` method (@Tigrov )
50
50
- Enh #325 : Refactor ` DMLQueryBuilder::upsert() ` method (@Tigrov )
51
51
- Chg #326 : Add alias in ` DQLQueryBuilder::selectExists() ` method for consistency with other DBMS (@Tigrov )
52
+ - Enh #327 : Refactor constraints (@Tigrov )
52
53
- Chg #330 : Rename ` insertWithReturningPks() ` to ` insertReturningPks() ` in ` Command ` and ` DMLQueryBuilder ` classes (@Tigrov )
53
54
54
55
## 1.3.0 March 21, 2024
Original file line number Diff line number Diff line change @@ -80,9 +80,9 @@ public function upsert(
80
80
$ quotedTableName = $ this ->quoter ->quoteTableName ($ table );
81
81
82
82
foreach ($ constraints as $ constraint ) {
83
- $ columnNames = ( array ) $ constraint ->getColumnNames ();
83
+ $ columnNames = $ constraint ->getColumnNames ();
84
84
$ constraintCondition = ['and ' ];
85
- /** @psalm-var string[] $columnNames */
85
+
86
86
foreach ($ columnNames as $ name ) {
87
87
$ quotedName = $ this ->quoter ->quoteColumnName ($ name );
88
88
$ constraintCondition [] = "$ quotedTableName. $ quotedName= \"EXCLUDED \". $ quotedName " ;
You can’t perform that action at this time.
0 commit comments