From 6307ba0c65b77b1f226488edd781fbe8940f3e76 Mon Sep 17 00:00:00 2001 From: zhangzetao Date: Tue, 1 Jun 2021 13:53:54 +0800 Subject: [PATCH] Fix the error that the specified column type is VARCHAR2 --- oracle.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oracle.go b/oracle.go index 5d6d4a2..2bcdff9 100644 --- a/oracle.go +++ b/oracle.go @@ -168,7 +168,7 @@ func (d Dialector) DataTypeOf(field *schema.Field) string { if val, ok := field.TagSettings["AUTOINCREMENT"]; ok && utils.CheckTruth(val) { sqlType += " GENERATED BY DEFAULT AS IDENTITY" } - case schema.String: + case schema.String, "VARCHAR2": size := field.Size defaultSize := d.DefaultStringSize