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 authored and ferventcoder committed Sep 7, 2012
1 parent 2e7b6ac commit f98f0fd
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 f98f0fd

Please sign in to comment.