Skip to content

Commit

Permalink
Fixed an 'ORA-01008: not all variables bound' error where null was be…
Browse files Browse the repository at this point in the history
…ing passed instead of DbNull.Value (issue chucknorris#58)
  • Loading branch information
rdingwall committed Apr 2, 2012
1 parent 169e773 commit 3774c30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion product/roundhouse.databases.oracle/OracleDatabase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ private IParameter<IDbDataParameter> create_parameter(string name, DbType type,
parameter.Direction = ParameterDirection.Input;
parameter.ParameterName = name;
parameter.DbType = type;
parameter.Value = value;
parameter.Value = value ?? DBNull.Value;
if (size != null)
{
parameter.Size = size.Value;
Expand Down

0 comments on commit 3774c30

Please sign in to comment.