From 4d962c5aa54cf267f9e7eaaa6d8ffc657b24236e Mon Sep 17 00:00:00 2001 From: John Guo Date: Sun, 3 Jan 2021 23:44:44 +0800 Subject: [PATCH] improve packge gdb for treat int8 as int64 for pgsql --- database/gdb/gdb_core_structure.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/database/gdb/gdb_core_structure.go b/database/gdb/gdb_core_structure.go index 27fedb2a1..33dda6e36 100644 --- a/database/gdb/gdb_core_structure.go +++ b/database/gdb/gdb_core_structure.go @@ -1,4 +1,4 @@ -// Copyright GoFrame Author(https://github.com/gogf/gf). All Rights Reserved. +// Copyright GoFrame Author(https://goframe.org). All Rights Reserved. // // This Source Code Form is subject to the terms of the MIT License. // If a copy of the MIT was not distributed with this file, @@ -56,6 +56,7 @@ func (c *Core) convertFieldValueToLocalValue(fieldValue interface{}, fieldType s return gconv.Int(gconv.String(fieldValue)) case + "int8", // For pgsql, int8 = bigint. "big_int", "bigint", "bigserial":