From ce804aee6c5118ed9a6bc04754aea4ea65232fe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E5=B0=8F=E5=8C=97?= Date: Fri, 19 Apr 2019 16:28:27 +0800 Subject: [PATCH] Unknown colType DOUBLE UNSIGNED (#1274) --- dialect_mysql.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dialect_mysql.go b/dialect_mysql.go index 9f5ae3b2..31240c71 100644 --- a/dialect_mysql.go +++ b/dialect_mysql.go @@ -393,6 +393,9 @@ func (db *mysql) GetColumns(tableName string) ([]string, map[string]*core.Column if colType == "FLOAT UNSIGNED" { colType = "FLOAT" } + if colType == "DOUBLE UNSIGNED" { + colType = "DOUBLE" + } col.Length = len1 col.Length2 = len2 if _, ok := core.SqlTypes[colType]; ok {