diff options
Diffstat (limited to 'mcs/class/Npgsql/NpgsqlTypes')
-rwxr-xr-x | mcs/class/Npgsql/NpgsqlTypes/NpgsqlTypesHelper.cs | 2 |
1 files changed, 2 insertions, 0 deletions
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); |