Author: kostat
Date: 2007-02-18 09:57:03 -0500 (Sun, 18 Feb 2007)
New Revision: 73081
Modified:
trunk/mcs/class/System.Data/System.Data.SqlClient.jvm/SqlConvert.cs
Log:
map Types.TIME, Types.TIMESTAMP to SqlDbType.DateTime
Modified: trunk/mcs/class/System.Data/System.Data.SqlClient.jvm/SqlConvert.cs
===================================================================
--- trunk/mcs/class/System.Data/System.Data.SqlClient.jvm/SqlConvert.cs
2007-02-18 14:17:08 UTC (rev 73080)
+++ trunk/mcs/class/System.Data/System.Data.SqlClient.jvm/SqlConvert.cs
2007-02-18 14:57:03 UTC (rev 73081)
@@ -73,8 +73,8 @@
// Types.REF
if(Types.SMALLINT == jdbcType) return
SqlDbType.SmallInt;
// Types.STRUCT
- if(Types.TIME == jdbcType) return SqlDbType.Timestamp;
- if(Types.TIMESTAMP == jdbcType) return
SqlDbType.Timestamp;
+ if(Types.TIME == jdbcType) return SqlDbType.DateTime;
+ if(Types.TIMESTAMP == jdbcType) return
SqlDbType.DateTime;
if(Types.TINYINT == jdbcType) return SqlDbType.TinyInt;
if(Types.VARBINARY == jdbcType) return
SqlDbType.VarBinary;
if(Types.VARCHAR == jdbcType) return SqlDbType.VarChar;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches