Skip to content

Commit c451aaa

Browse files
Copilotrenemadsen
andcommitted
Update functional test baselines from upstream PR PomeloFoundation#2019
Co-authored-by: renemadsen <76994+renemadsen@users.noreply.github.com>
1 parent da709c5 commit c451aaa

57 files changed

Lines changed: 1559 additions & 7040 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

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

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,13 @@
88

99
namespace 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-
8386
UPDATE `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
"""
9497
UPDATE `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-
108109
UPDATE `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

Comments
 (0)