Skip to content

Commit

Permalink
Fix field name.
Browse files Browse the repository at this point in the history
(cherry picked from commit 9b21394)
  • Loading branch information
lauxjpn committed Mar 15, 2024
1 parent d06fc11 commit 57e2156
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class MySqlDbFunctionsExtensionsMethodTranslator : IMethodCallTranslator
{
private readonly MySqlSqlExpressionFactory _sqlExpressionFactory;

private static readonly HashSet<MethodInfo> _convertDateTimeTimeZoneMethodInfos =
private static readonly HashSet<MethodInfo> _convertTimeZoneMethodInfos =
[
typeof(MySqlDbFunctionsExtensions).GetRuntimeMethod(
nameof(MySqlDbFunctionsExtensions.ConvertTimeZone),
Expand Down Expand Up @@ -183,7 +183,7 @@ public virtual SqlExpression Translate(
IReadOnlyList<SqlExpression> arguments,
IDiagnosticsLogger<DbLoggerCategory.Query> logger)
{
if (_convertDateTimeTimeZoneMethodInfos.TryGetValue(method, out _))
if (_convertTimeZoneMethodInfos.TryGetValue(method, out _))
{
// Will not just return `NULL` if any of its parameters is `NULL`, but also if `fromTimeZone` or `toTimeZone` is incorrect.
// Will do no conversion at all if `dateTime` is outside the supported range.
Expand Down

0 comments on commit 57e2156

Please sign in to comment.