diff --git a/mariadb.go b/mariadb.go index 3d29b24..862c8b8 100644 --- a/mariadb.go +++ b/mariadb.go @@ -169,7 +169,7 @@ func (s *Mariadb) GetTables(schema string) ([]*Table, error) { func (s *Mariadb) GetDataType(internalType string) DataType { switch strings.ToLower(internalType) { - case "varchar": + case "varchar", "text", "tinytext", "mediumtext", "longtext": return StringType case "int", "tinyint", "smallint", "bigint": return IntType