File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1470,7 +1470,7 @@ public void Test_PostgreSQL_ExecuteTransaction_Incomplete_Transaction_Rollback_O
1470
1470
// Insert & Update
1471
1471
var result = dbContext . ExecuteTransaction ( statements ) ;
1472
1472
Assert . IsFalse ( result . Success ) ;
1473
- Assert . AreEqual ( "42601: syntax error at end of input\r \n \r \n POSITION: 7" , result . Exception . Message ) ;
1473
+ Assert . IsTrue ( result . Exception . Message . Contains ( "42601: syntax error at end of input" ) ) ;
1474
1474
var data = dbContext . FetchData ( verifyDMLExecution ) ;
1475
1475
Assert . AreEqual ( 0 , data . Count ) ;
1476
1476
}
@@ -1604,7 +1604,7 @@ public async Task Test_PostgreSQL_ExecuteTransactionAsync_Incomplete_Transaction
1604
1604
// Insert & Update
1605
1605
var result = await dbContext . ExecuteTransactionAsync ( statements ) ;
1606
1606
Assert . IsFalse ( result . Success ) ;
1607
- Assert . AreEqual ( "42601: syntax error at end of input\r \n \r \n POSITION: 7" , result . Exception . Message ) ;
1607
+ Assert . IsTrue ( result . Exception . Message . Contains ( "42601: syntax error at end of input" ) ) ;
1608
1608
var data = await dbContext . FetchDataAsync ( verifyDMLExecution ) ;
1609
1609
Assert . AreEqual ( 0 , data . Count ) ;
1610
1610
}
You can’t perform that action at this time.
0 commit comments