Skip to content

Commit 3765e63

Browse files
Copilotrenemadsen
andcommitted
Refine UPDATE test handling - UPDATE works on all MariaDB versions
Co-authored-by: renemadsen <[email protected]>
1 parent 03da094 commit 3765e63

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/EFCore.MySql.FunctionalTests/BulkUpdates/NorthwindBulkUpdatesMySqlTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,16 +1011,16 @@ public override async Task Update_Where_GroupBy_First_set_constant_2(bool async)
10111011

10121012
public override async Task Update_Where_GroupBy_First_set_constant_3(bool async)
10131013
{
1014-
if (!AppConfig.ServerVersion.Supports.DeleteWithSelfReferencingSubquery)
1014+
if (AppConfig.ServerVersion.Type == ServerType.MySql)
10151015
{
1016-
// Not supported by MySQL and older MariaDB versions:
1016+
// Not supported by MySQL:
10171017
// Error Code: 1093. You can't specify target table 'c' for update in FROM clause
10181018
await Assert.ThrowsAsync<MySqlException>(
10191019
() => base.Update_Where_GroupBy_First_set_constant_3(async));
10201020
}
10211021
else
10221022
{
1023-
// Works as expected in MariaDB 11+.
1023+
// Works as expected in MariaDB (all versions).
10241024
await base.Update_Where_GroupBy_First_set_constant_3(async);
10251025

10261026
AssertExecuteUpdateSql(

0 commit comments

Comments
 (0)