Przeglądaj źródła

Unknown colType DOUBLE UNSIGNED

xormplus 6 lat temu
rodzic
commit
284871d688
1 zmienionych plików z 3 dodań i 0 usunięć
  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 {