diff --git a/Src/Asp.Net/SqlSugar/Realization/Kdbndp/DbBind/KdbndpBind.cs b/Src/Asp.Net/SqlSugar/Realization/Kdbndp/DbBind/KdbndpBind.cs index bf45d9467..9bdf7fd0f 100644 --- a/Src/Asp.Net/SqlSugar/Realization/Kdbndp/DbBind/KdbndpBind.cs +++ b/Src/Asp.Net/SqlSugar/Realization/Kdbndp/DbBind/KdbndpBind.cs @@ -67,8 +67,9 @@ namespace SqlSugar public static List> MappingTypesConst = new List>(){ new KeyValuePair("int2",CSharpDataType.@short), - new KeyValuePair("int1",CSharpDataType.@byte), + //new KeyValuePair("int1",CSharpDataType.@byte), new KeyValuePair("smallint",CSharpDataType.@short), + new KeyValuePair("smallint",CSharpDataType.@byte), new KeyValuePair("int4",CSharpDataType.@int), new KeyValuePair("integer",CSharpDataType.@int), new KeyValuePair("tinyint",CSharpDataType.@int), diff --git a/Src/Asp.Net/SqlSugar/Realization/PostgreSQL/DbBind/PostgreSQLDbBind.cs b/Src/Asp.Net/SqlSugar/Realization/PostgreSQL/DbBind/PostgreSQLDbBind.cs index 0eff57343..ed63a2fc2 100644 --- a/Src/Asp.Net/SqlSugar/Realization/PostgreSQL/DbBind/PostgreSQLDbBind.cs +++ b/Src/Asp.Net/SqlSugar/Realization/PostgreSQL/DbBind/PostgreSQLDbBind.cs @@ -82,8 +82,9 @@ namespace SqlSugar public static List> MappingTypesConst = new List>(){ new KeyValuePair("int2",CSharpDataType.@short), - new KeyValuePair("int1",CSharpDataType.@byte), + //new KeyValuePair("int1",CSharpDataType.@byte), new KeyValuePair("smallint",CSharpDataType.@short), + new KeyValuePair("smallint",CSharpDataType.@byte), new KeyValuePair("int4",CSharpDataType.@int), new KeyValuePair("serial",CSharpDataType.@int), new KeyValuePair("integer",CSharpDataType.@int),