Author: kostat
Date: 2007-02-26 11:11:25 -0500 (Mon, 26 Feb 2007)
New Revision: 73437
Modified:
trunk/mcs/class/System.Data/System.Data.SqlClient.jvm/SqlConvert.cs
Log:
map string to NVarChar
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-26 16:06:17 UTC (rev 73436)
+++ trunk/mcs/class/System.Data/System.Data.SqlClient.jvm/SqlConvert.cs
2007-02-26 16:11:25 UTC (rev 73437)
@@ -77,7 +77,7 @@
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;
+ if(Types.VARCHAR == jdbcType) return SqlDbType.NVarChar;
return SqlDbType.Variant;
}
@@ -108,7 +108,7 @@
}
case TypeCode.SByte: return SqlDbType.TinyInt;
case TypeCode.Single: return SqlDbType.Float;
- case TypeCode.String: return SqlDbType.VarChar;
+ case TypeCode.String: return SqlDbType.NVarChar;
case TypeCode.UInt16: return SqlDbType.SmallInt;
case TypeCode.UInt32: return SqlDbType.Int;
case TypeCode.UInt64: return SqlDbType.BigInt;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches