Skip to content

Commit

Permalink
Completed Change for SQLite for UInt16 and UInt32
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Braun authored and Markus Braun committed Oct 25, 2013
1 parent c2f79c1 commit 75ec362
Showing 1 changed file with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,24 @@ public override void RemoveAllIndexes(string table)
}

changeColumnInternal(table, columnDefs.Select(x => x.Name).ToArray(), columnDefs);
}

protected override void ConfigureParameterWithValue(IDbDataParameter parameter, int index, object value)
{
if (value is UInt16)
{
parameter.DbType = DbType.Int32;
parameter.Value = value;
}
else if (value is UInt32)
{
parameter.DbType = DbType.Int64;
parameter.Value = value;
}
else
{
base.ConfigureParameterWithValue(parameter, index, value);
}
}
}
}
}

0 comments on commit 75ec362

Please sign in to comment.