No need for a default TYPE on SQL DEFINE FIELD

Previously the default type for DEFINE FIELD statements was “any”, but this is unnecessary, as fields with type “any” are not type-checked anyway, so there is little point in defining the default as “any”. Therefore the type is left blank if no TYPE is specifically defined.
This commit is contained in:
Tobie Morgan Hitchcock 2016-11-26 13:35:58 +00:00
parent 90953735d9
commit 2b47e6e0a9

View file

@ -121,10 +121,6 @@ func (p *parser) parseDefineFieldStatement() (stmt *DefineFieldStatement, err er
}
if stmt.Type == "" {
stmt.Type = "any"
}
if _, _, err = p.shouldBe(EOF, SEMICOLON); err != nil {
return nil, err
}