From: Rodrigo Kumpera Date: Wed, 10 Oct 2012 20:32:58 +0000 (-0700) Subject: Merge pull request #438 from mattleibow/master X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=99c3107f1d47d707e6b7786422154292cdbcf938;hp=baf2ec58aacfaee0a95dc6b6a659f6012a76f025;p=mono.git Merge pull request #438 from mattleibow/master UInt32 is too large for Int32 --- diff --git a/mcs/class/Mono.Data.Sqlite/Mono.Data.Sqlite_2.0/SQLiteStatement.cs b/mcs/class/Mono.Data.Sqlite/Mono.Data.Sqlite_2.0/SQLiteStatement.cs index 3b41ae7f86c..77c52f67835 100644 --- a/mcs/class/Mono.Data.Sqlite/Mono.Data.Sqlite_2.0/SQLiteStatement.cs +++ b/mcs/class/Mono.Data.Sqlite/Mono.Data.Sqlite_2.0/SQLiteStatement.cs @@ -181,6 +181,7 @@ namespace Mono.Data.Sqlite case DbType.DateTime: _sql.Bind_DateTime(this, index, Convert.ToDateTime(obj, CultureInfo.CurrentCulture)); break; + case DbType.UInt32: case DbType.Int64: case DbType.UInt64: _sql.Bind_Int64(this, index, Convert.ToInt64(obj, CultureInfo.CurrentCulture)); @@ -189,7 +190,6 @@ namespace Mono.Data.Sqlite case DbType.Int16: case DbType.Int32: case DbType.UInt16: - case DbType.UInt32: case DbType.SByte: case DbType.Byte: _sql.Bind_Int32(this, index, Convert.ToInt32(obj, CultureInfo.CurrentCulture));