Skip to content

Commit d788f7d

Browse files
rojiCopilot
andauthored
Sync to EF 11.0.0-preview.3.26203.107 (#3802)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 1236e55 commit d788f7d

File tree

3 files changed

+30
-4
lines changed

3 files changed

+30
-4
lines changed

Directory.Packages.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project>
22
<PropertyGroup>
3-
<EFCoreVersion>11.0.0-preview.3.26174.112</EFCoreVersion>
4-
<MicrosoftExtensionsVersion>11.0.0-preview.3.26174.112</MicrosoftExtensionsVersion>
5-
<MicrosoftExtensionsConfigurationVersion>11.0.0-preview.3.26174.112</MicrosoftExtensionsConfigurationVersion>
3+
<EFCoreVersion>11.0.0-preview.3.26203.107</EFCoreVersion>
4+
<MicrosoftExtensionsVersion>11.0.0-preview.3.26203.107</MicrosoftExtensionsVersion>
5+
<MicrosoftExtensionsConfigurationVersion>11.0.0-preview.3.26203.107</MicrosoftExtensionsConfigurationVersion>
66
<NpgsqlVersion>10.0.0</NpgsqlVersion>
77
</PropertyGroup>
88

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "11.0.100-preview.1.26104.118",
3+
"version": "11.0.100-preview.2.26159.112",
44
"rollForward": "latestMinor",
55
"allowPrerelease": true
66
}

test/EFCore.PG.FunctionalTests/Query/Translations/StringTranslationsNpgsqlTest.cs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,20 @@ WHERE strpos('12559', b."Int"::text) - 1 = 1
215215
""");
216216
}
217217

218+
public override async Task IndexOf_with_non_string_column_using_double_cast()
219+
{
220+
await base.IndexOf_with_non_string_column_using_double_cast();
221+
222+
AssertSql(
223+
"""
224+
@pattern='5'
225+
226+
SELECT b."Id", b."Bool", b."Byte", b."ByteArray", b."DateOnly", b."DateTime", b."DateTimeOffset", b."Decimal", b."Double", b."Enum", b."FlagsEnum", b."Float", b."Guid", b."Int", b."Long", b."Short", b."String", b."TimeOnly", b."TimeSpan"
227+
FROM "BasicTypesEntities" AS b
228+
WHERE strpos(b."Int"::text, @pattern) - 1 <> -1
229+
""");
230+
}
231+
218232
#endregion IndexOf
219233

220234
#region Replace
@@ -259,6 +273,18 @@ public override async Task Replace_using_property_arguments()
259273
""");
260274
}
261275

276+
public override async Task Replace_with_non_string_column_using_double_cast()
277+
{
278+
await base.Replace_with_non_string_column_using_double_cast();
279+
280+
AssertSql(
281+
"""
282+
SELECT b."Id", b."Bool", b."Byte", b."ByteArray", b."DateOnly", b."DateTime", b."DateTimeOffset", b."Decimal", b."Double", b."Enum", b."FlagsEnum", b."Float", b."Guid", b."Int", b."Long", b."Short", b."String", b."TimeOnly", b."TimeSpan"
283+
FROM "BasicTypesEntities" AS b
284+
WHERE replace(b."Int"::text, '8', '3') = '3'
285+
""");
286+
}
287+
262288
#endregion Replace
263289

264290
#region Substring

0 commit comments

Comments
 (0)