@@ -95,7 +95,7 @@ public function testInsertVarbinary(mixed $expectedData, mixed $testData): void
95
95
$ this ->assertSame ($ expectedData , $ resultData ['blob_col ' ]);
96
96
}
97
97
98
- public function testInsertWithReturningPksWithComputedColumn (): void
98
+ public function testInsertReturningPksWithComputedColumn (): void
99
99
{
100
100
$ db = $ this ->getConnection (true );
101
101
@@ -122,13 +122,13 @@ public function testInsertWithReturningPksWithComputedColumn(): void
122
122
)->execute ();
123
123
$ insertedString = 'test ' ;
124
124
$ transaction = $ db ->beginTransaction ();
125
- $ result = $ command ->insertWithReturningPks ('{{test_trigger}} ' , ['stringcol ' => $ insertedString ]);
125
+ $ result = $ command ->insertReturningPks ('{{test_trigger}} ' , ['stringcol ' => $ insertedString ]);
126
126
$ transaction ->commit ();
127
127
128
128
$ this ->assertSame (['id ' => '1 ' ], $ result );
129
129
}
130
130
131
- public function testInsertWithReturningPksWithRowVersionColumn (): void
131
+ public function testInsertReturningPksWithRowVersionColumn (): void
132
132
{
133
133
$ db = $ this ->getConnection (true );
134
134
@@ -139,12 +139,12 @@ public function testInsertWithReturningPksWithRowVersionColumn(): void
139
139
SQL
140
140
)->execute ();
141
141
$ insertedString = 'test ' ;
142
- $ result = $ command ->insertWithReturningPks ('{{test_trigger}} ' , ['stringcol ' => $ insertedString ]);
142
+ $ result = $ command ->insertReturningPks ('{{test_trigger}} ' , ['stringcol ' => $ insertedString ]);
143
143
144
144
$ this ->assertSame (['id ' => '1 ' ], $ result );
145
145
}
146
146
147
- public function testInsertWithReturningPksWithRowVersionNullColumn (): void
147
+ public function testInsertReturningPksWithRowVersionNullColumn (): void
148
148
{
149
149
$ db = $ this ->getConnection (true );
150
150
@@ -155,7 +155,7 @@ public function testInsertWithReturningPksWithRowVersionNullColumn(): void
155
155
SQL
156
156
)->execute ();
157
157
$ insertedString = 'test ' ;
158
- $ result = $ command ->insertWithReturningPks (
158
+ $ result = $ command ->insertReturningPks (
159
159
'{{test_trigger}} ' ,
160
160
['stringcol ' => $ insertedString , 'RV ' => new Expression ('DEFAULT ' )],
161
161
);
@@ -168,10 +168,10 @@ public function testResetSequence(): void
168
168
$ db = $ this ->getConnection (true );
169
169
170
170
$ command = $ db ->createCommand ();
171
- $ oldRow = $ command ->insertWithReturningPks ('{{item}} ' , ['name ' => 'insert_value_for_sequence ' , 'category_id ' => 1 ]);
171
+ $ oldRow = $ command ->insertReturningPks ('{{item}} ' , ['name ' => 'insert_value_for_sequence ' , 'category_id ' => 1 ]);
172
172
$ command ->delete ('{{item}} ' , ['id ' => $ oldRow ['id ' ]])->execute ();
173
173
$ command ->resetSequence ('{{item}} ' )->execute ();
174
- $ newRow = $ command ->insertWithReturningPks ('{{item}} ' , ['name ' => 'insert_value_for_sequence ' , 'category_id ' => 1 ]);
174
+ $ newRow = $ command ->insertReturningPks ('{{item}} ' , ['name ' => 'insert_value_for_sequence ' , 'category_id ' => 1 ]);
175
175
176
176
$ this ->assertEquals ($ oldRow ['id ' ], $ newRow ['id ' ]);
177
177
}
0 commit comments