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:
parent
90953735d9
commit
2b47e6e0a9
1 changed files with 0 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue