Skip to content

Commit fc889a1

Browse files
sign
Signed-off-by: Sebastian <sebastian.alfers@gmail.com>
1 parent 04e54ed commit fc889a1

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

src/test/java/io/r2dbc/mssql/TransactionIntegrationTests.java

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -373,33 +373,12 @@ void shouldResetLockTimeoutAfterTransaction() {
373373
.verifyComplete();
374374
}
375375

376-
@Test
377-
void shouldGetRowsUpdatedForUpsert() {
378-
createTable(connection);
379-
380-
String upsertSQl = "UPDATE r2dbc_example SET id = 1, first_name = 'Jesse', last_name = 'Pinkman' WHERE id = 1 if @@ROWCOUNT = 0 " +
381-
"INSERT INTO r2dbc_example (id, first_name, last_name)VALUES(1, 'Jesse', 'Pinkmann')";
382-
383-
// should trigger the "INSERT" part of the query
384-
connection.createStatement(upsertSQl)
385-
.execute().flatMap(Result::getRowsUpdated)
386-
.as(StepVerifier::create)
387-
.expectNext(1L)
388-
.verifyComplete();
389-
390-
// should trigger the "UPDATE" part of the query
391-
connection.createStatement(upsertSQl)
392-
.execute().flatMap(Result::getRowsUpdated)
393-
.as(StepVerifier::create)
394-
.expectNext(1L)
395-
.verifyComplete();
396-
}
397-
398376
@Test
399377
void shouldGetRowsUpdatedInUpsert() throws Exception {
400378
createTable(connection);
401379
String insertSql = "INSERT INTO r2dbc_example (id, first_name, last_name) VALUES(1, 'Jessi', 'Pinkmann')";
402380

381+
403382
reactor.core.publisher.Flux<Long> flux = connection
404383
.createStatement(insertSql)
405384
.execute()

0 commit comments

Comments
 (0)