Selaa lähdekoodia

Unknown colType DOUBLE UNSIGNED

xormplus 6 vuotta sitten
vanhempi
commit
284871d688
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  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 {