Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project>
<PropertyGroup>
<EFCoreVersion>11.0.0-preview.3.26174.112</EFCoreVersion>
<MicrosoftExtensionsVersion>11.0.0-preview.3.26174.112</MicrosoftExtensionsVersion>
<MicrosoftExtensionsConfigurationVersion>11.0.0-preview.3.26174.112</MicrosoftExtensionsConfigurationVersion>
<EFCoreVersion>11.0.0-preview.3.26203.107</EFCoreVersion>
<MicrosoftExtensionsVersion>11.0.0-preview.3.26203.107</MicrosoftExtensionsVersion>
<MicrosoftExtensionsConfigurationVersion>11.0.0-preview.3.26203.107</MicrosoftExtensionsConfigurationVersion>
<NpgsqlVersion>10.0.0</NpgsqlVersion>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "11.0.100-preview.1.26104.118",
"version": "11.0.100-preview.2.26159.112",
"rollForward": "latestMinor",
"allowPrerelease": true
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,20 @@ WHERE strpos('12559', b."Int"::text) - 1 = 1
""");
}

public override async Task IndexOf_with_non_string_column_using_double_cast()
{
await base.IndexOf_with_non_string_column_using_double_cast();

AssertSql(
"""
@pattern='5'

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"
FROM "BasicTypesEntities" AS b
WHERE strpos(b."Int"::text, @pattern) - 1 <> -1
""");
}

#endregion IndexOf

#region Replace
Expand Down Expand Up @@ -259,6 +273,18 @@ public override async Task Replace_using_property_arguments()
""");
}

public override async Task Replace_with_non_string_column_using_double_cast()
{
await base.Replace_with_non_string_column_using_double_cast();

AssertSql(
"""
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"
FROM "BasicTypesEntities" AS b
WHERE replace(b."Int"::text, '8', '3') = '3'
""");
}

#endregion Replace

#region Substring
Expand Down
Loading