From 2c6d47ca37204f31e59d3b9933902bc9cc4c9c14 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sat, 10 Apr 2021 13:52:17 +0800 Subject: [PATCH] Fix tidb test --- schemas/type.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/schemas/type.go b/schemas/type.go index 040bd942..6b50d184 100644 --- a/schemas/type.go +++ b/schemas/type.go @@ -74,13 +74,14 @@ func (s *SQLType) IsXML() bool { var ( Bit = "BIT" + UnsignedBit = "UNSIGNED BIT" TinyInt = "TINYINT" SmallInt = "SMALLINT" MediumInt = "MEDIUMINT" Int = "INT" + UnsignedInt = "UNSIGNED INT" Integer = "INTEGER" BigInt = "BIGINT" - UnsignedInt = "UNSIGNED INT" UnsignedBigInt = "UNSIGNED BIGINT" Enum = "ENUM" @@ -139,13 +140,14 @@ var ( SqlTypes = map[string]int{ Bit: NUMERIC_TYPE, + UnsignedBit: NUMERIC_TYPE, TinyInt: NUMERIC_TYPE, SmallInt: NUMERIC_TYPE, MediumInt: NUMERIC_TYPE, Int: NUMERIC_TYPE, + UnsignedInt: NUMERIC_TYPE, Integer: NUMERIC_TYPE, BigInt: NUMERIC_TYPE, - UnsignedInt: NUMERIC_TYPE, UnsignedBigInt: NUMERIC_TYPE, Enum: TEXT_TYPE,