diff options
author | Francisco Figueiredo Jr. <fxjr@mono-cvs.ximian.com> | 2004-09-13 05:18:27 +0400 |
---|---|---|
committer | Francisco Figueiredo Jr. <fxjr@mono-cvs.ximian.com> | 2004-09-13 05:18:27 +0400 |
commit | 0e5e637322877c85029626a90eccab838bf71101 (patch) | |
tree | 216966756079af8b1f7f1b2784e7cf33b840ae68 | |
parent | cf6bdb5c482f4108f3d2e090e1973b863804767d (diff) |
2004-09-12 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
* NpgsqlTypes/NpgsqlTypesHelper:
VerifyDefaultTypesMap: Added DbType.Byte support. Thanks Martin ( martijn at boland dot org)
for heads up.
svn path=/trunk/mcs/; revision=33785
-rw-r--r-- | mcs/class/Npgsql/ChangeLog | 6 | ||||
-rwxr-xr-x | mcs/class/Npgsql/NpgsqlTypes/NpgsqlTypesHelper.cs | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/mcs/class/Npgsql/ChangeLog b/mcs/class/Npgsql/ChangeLog index 3d06dd568b4..f2be599e1cd 100644 --- a/mcs/class/Npgsql/ChangeLog +++ b/mcs/class/Npgsql/ChangeLog @@ -1,6 +1,12 @@ 2004-09-12 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br> * NpgsqlTypes/NpgsqlTypesHelper: + VerifyDefaultTypesMap: Added DbType.Byte support. Thanks Martin ( martijn at boland dot org) + for heads up. + +2004-09-12 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br> + + * NpgsqlTypes/NpgsqlTypesHelper: ConvertToBackend: Fixed code to handle null values properly when using extended query mode. Fix bug 955 in gborg. diff --git a/mcs/class/Npgsql/NpgsqlTypes/NpgsqlTypesHelper.cs b/mcs/class/Npgsql/NpgsqlTypes/NpgsqlTypesHelper.cs index d884a743739..200d9bbcb2e 100755 --- a/mcs/class/Npgsql/NpgsqlTypes/NpgsqlTypesHelper.cs +++ b/mcs/class/Npgsql/NpgsqlTypes/NpgsqlTypesHelper.cs @@ -183,6 +183,8 @@ namespace NpgsqlTypes NativeTypeMapping.AddTypeAlias("int2", typeof(Int16)); + NativeTypeMapping.AddDbTypeAlias("int2", DbType.Byte); + NativeTypeMapping.AddType("int4", NpgsqlDbType.Integer, DbType.Int32, false, null); |