Skip to content

Commit dc22d60

Browse files
author
zzzprojects
committed
Fix Oracle Issue
Fix Oracle Issue
1 parent 037a39f commit dc22d60

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/shared/Z.EF.Plus.BatchUpdate.Shared/BatchUpdate.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,14 @@ internal DbCommand CreateCommand<T>(ObjectQuery query, SchemaEntityType<T> entit
582582
}
583583
else
584584
{
585-
parameter.Value = paramValue ?? DBNull.Value;
585+
if (isOracle && paramValue is bool)
586+
{
587+
parameter.Value = (Boolean) paramValue ? 1 : 0;
588+
}
589+
else
590+
{
591+
parameter.Value = paramValue ?? DBNull.Value;
592+
}
586593
}
587594
}
588595

0 commit comments

Comments
 (0)