88
99namespace Pomelo . EntityFrameworkCore . MySql . FunctionalTests . BulkUpdates ;
1010
11- public class NonSharedModelBulkUpdatesMySqlTest ( NonSharedFixture fixture ) : NonSharedModelBulkUpdatesRelationalTestBase ( fixture )
11+ public class NonSharedModelBulkUpdatesMySqlTest : NonSharedModelBulkUpdatesRelationalTestBase
1212{
13+ public NonSharedModelBulkUpdatesMySqlTest ( NonSharedFixture fixture )
14+ : base ( fixture )
15+ {
16+ }
17+
1318 protected override ITestStoreFactory TestStoreFactory
1419 => MySqlTestStoreFactory . Instance ;
1520
@@ -78,10 +83,8 @@ public override async Task Update_non_owned_property_on_entity_with_owned2(bool
7883
7984 AssertSql (
8085"""
81- @p='_Suffix' (Size = 4000)
82-
8386UPDATE `Owner` AS `o`
84- SET `o`.`Title` = CONCAT(COALESCE(`o`.`Title`, ''), @p )
87+ SET `o`.`Title` = CONCAT(COALESCE(`o`.`Title`, ''), '_Suffix' )
8588""" ) ;
8689 }
8790
@@ -92,8 +95,8 @@ public override async Task Update_owned_and_non_owned_properties_with_table_shar
9295 AssertSql (
9396"""
9497UPDATE `Owner` AS `o`
95- SET `o`.`OwnedReference_Number ` = CHAR_LENGTH( `o`.`Title` ),
96- `o`.`Title ` = COALESCE(CAST( `o`.`OwnedReference_Number` AS char), '' )
98+ SET `o`.`Title ` = COALESCE(CAST( `o`.`OwnedReference_Number` AS char), '' ),
99+ `o`.`OwnedReference_Number ` = CHAR_LENGTH( `o`.`Title` )
97100""" ) ;
98101 }
99102
@@ -103,10 +106,8 @@ public override async Task Update_main_table_in_entity_with_entity_splitting(boo
103106
104107 AssertSql (
105108"""
106- @p='2020-01-01 00:00:00' (DbType = DateTime)
107-
108109UPDATE `Blogs` AS `b`
109- SET `b`.`CreationTimestamp` = @p
110+ SET `b`.`CreationTimestamp` = TIMESTAMP '2020-01-01 00:00:00'
110111""" ) ;
111112 }
112113
0 commit comments