Skip to content

Commit

Permalink
Translate DateTime.Date without type mapping in legacy mode (#3032)
Browse files Browse the repository at this point in the history
Fixes #3031

(cherry picked from commit 10aebeb)
  • Loading branch information
roji committed Dec 19, 2023
1 parent 67fa94d commit 19b5617
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public NpgsqlDateTimeMemberTranslator(
switch (instance?.TypeMapping)
{
case NpgsqlTimestampTypeMapping:
case NpgsqlTimestampTzTypeMapping when NpgsqlTypeMappingSource.LegacyTimestampBehavior:
case { } when NpgsqlTypeMappingSource.LegacyTimestampBehavior:
return _sqlExpressionFactory.Function(
"date_trunc",
new[] { _sqlExpressionFactory.Constant("day"), instance! },
Expand Down

0 comments on commit 19b5617

Please # to comment.