瀏覽代碼

Unknown colType DOUBLE UNSIGNED

xormplus 6 年之前
父節點
當前提交
284871d688
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      dialect_mysql.go

+ 3 - 0
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 {