diff --git a/tool/sql2go/parser.go b/tool/sql2go/parser.go index e92331f..0bb64da 100644 --- a/tool/sql2go/parser.go +++ b/tool/sql2go/parser.go @@ -30,7 +30,7 @@ func ParseCreateTableSql(sql string) (string, error) { stmt sqlparser.Statement err error ) - sql = strings.ReplaceAll(sql, " ", "") + sql = strings.ReplaceAll(strings.ToUpper(sql), "CURRENT_TIMESTAMP()", "CURRENT_TIMESTAMP") if stmt, err = sqlparser.ParseStrictDDL(sql); nil != err { return "", err }