From ee8a267279512c52f25c3a2dbd46933075722d68 Mon Sep 17 00:00:00 2001 From: justbk <249396768@qq.com> Date: Tue, 26 Jul 2022 16:52:28 +0800 Subject: [PATCH] add tinyint type default convert to int --- psycopg/typecast_builtins.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psycopg/typecast_builtins.c b/psycopg/typecast_builtins.c index 0e4901d..e6bc799 100644 --- a/psycopg/typecast_builtins.c +++ b/psycopg/typecast_builtins.c @@ -1,6 +1,6 @@ static long int typecast_NUMBER_types[] = {20, 23, 21, 701, 700, 1700, 0}; static long int typecast_LONGINTEGER_types[] = {20, 0}; -static long int typecast_INTEGER_types[] = {23, 21, 0}; +static long int typecast_INTEGER_types[] = {5545, 23, 21, 0}; static long int typecast_FLOAT_types[] = {701, 700, 0}; static long int typecast_DECIMAL_types[] = {1700, 0}; static long int typecast_STRING_types[] = {19, 18, 25, 1042, 1043, 0}; -- Gitee