Skip to content

Commit a45a51f

Browse files
authored
OracleCompiler - CompileBasicDateCondition
condition.Part must use .ToLowerInvariant() to match who uses query on uppercase like .WhereDatePart("DATE", ..., ....);
1 parent a80a0c9 commit a45a51f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

QueryBuilder/Compilers/OracleCompiler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ protected override string CompileBasicDateCondition(SqlResult ctx, BasicDateCond
108108

109109
var isDateTime = (condition.Value is DateTime dt);
110110

111-
switch (condition.Part)
111+
switch (condition.Part?.ToLowerInvariant())
112112
{
113113
case "date": // assume YY-MM-DD format
114114
if (isDateTime)

0 commit comments

Comments
 (0)