Fix SQL bug where NAMESPACE/DATABASE were needed twice

DEFINE NAMESPACE and REMOVE NAMESPACE statements expected two NAMESPACE keywords in the SQL query.

DEFINE DATABASE and REMOVE DATABASE statements expected two DATABASE keywords in the SQL query.
This commit is contained in:
Tobie Morgan Hitchcock 2017-02-09 10:31:53 +00:00
parent 1b83dace69
commit dfee11339e
2 changed files with 0 additions and 16 deletions

View file

@ -22,10 +22,6 @@ func (p *parser) parseDefineDatabaseStatement() (stmt *DefineDatabaseStatement,
return nil, err return nil, err
} }
if _, _, err = p.shouldBe(DATABASE); err != nil {
return nil, err
}
if stmt.Name, err = p.parseName(); err != nil { if stmt.Name, err = p.parseName(); err != nil {
return nil, err return nil, err
} }
@ -42,10 +38,6 @@ func (p *parser) parseRemoveDatabaseStatement() (stmt *RemoveDatabaseStatement,
return nil, err return nil, err
} }
if _, _, err = p.shouldBe(DATABASE); err != nil {
return nil, err
}
if stmt.Name, err = p.parseName(); err != nil { if stmt.Name, err = p.parseName(); err != nil {
return nil, err return nil, err
} }

View file

@ -22,10 +22,6 @@ func (p *parser) parseDefineNamespaceStatement() (stmt *DefineNamespaceStatement
return nil, err return nil, err
} }
if _, _, err = p.shouldBe(NAMESPACE); err != nil {
return nil, err
}
if stmt.Name, err = p.parseName(); err != nil { if stmt.Name, err = p.parseName(); err != nil {
return nil, err return nil, err
} }
@ -42,10 +38,6 @@ func (p *parser) parseRemoveNamespaceStatement() (stmt *RemoveNamespaceStatement
return nil, err return nil, err
} }
if _, _, err = p.shouldBe(NAMESPACE); err != nil {
return nil, err
}
if stmt.Name, err = p.parseName(); err != nil { if stmt.Name, err = p.parseName(); err != nil {
return nil, err return nil, err
} }