Skip to content

Commit

Permalink
corrected nullability for translation
Browse files Browse the repository at this point in the history
  • Loading branch information
WhatzGames committed Apr 2, 2024
1 parent d6a3efe commit fc4e3bb
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public NpgsqlRegexTranslator(
_sqlExpressionFactory.Constant(translatedOptions)
},
nullable: true,
new[] { true, false, false, false },
new[] { true, true, true, true },
typeof(string),
_typeMappingSource.FindMapping(typeof(string)));
}
Expand All @@ -159,7 +159,7 @@ public NpgsqlRegexTranslator(
_sqlExpressionFactory.ApplyTypeMapping(replacement, typeMapping)
},
nullable: true,
new[] { true, false, false},
new[] { true, true, true},
typeof(string),
_typeMappingSource.FindMapping(typeof(string)));
}
Expand Down Expand Up @@ -209,8 +209,8 @@ public NpgsqlRegexTranslator(
_sqlExpressionFactory.ApplyTypeMapping(pattern, typeMapping)
},
nullable: true,
new[] { true, false },
typeof(int),
new[] { true, true },
typeof(int?),
_typeMappingSource.FindMapping(typeof(int)));
}

Expand All @@ -225,8 +225,8 @@ public NpgsqlRegexTranslator(
_sqlExpressionFactory.Constant(translatedOptions)
},
nullable: true,
new[] { true, false, false, false },
typeof(int),
new[] { true, true, true, true },
typeof(int?),
_typeMappingSource.FindMapping(typeof(int)));
}

Expand Down

0 comments on commit fc4e3bb

Please sign in to comment.