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:
parent
1b83dace69
commit
dfee11339e
2 changed files with 0 additions and 16 deletions
|
@ -22,10 +22,6 @@ func (p *parser) parseDefineDatabaseStatement() (stmt *DefineDatabaseStatement,
|
|||
return nil, err
|
||||
}
|
||||
|
||||
if _, _, err = p.shouldBe(DATABASE); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if stmt.Name, err = p.parseName(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
@ -42,10 +38,6 @@ func (p *parser) parseRemoveDatabaseStatement() (stmt *RemoveDatabaseStatement,
|
|||
return nil, err
|
||||
}
|
||||
|
||||
if _, _, err = p.shouldBe(DATABASE); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if stmt.Name, err = p.parseName(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
@ -22,10 +22,6 @@ func (p *parser) parseDefineNamespaceStatement() (stmt *DefineNamespaceStatement
|
|||
return nil, err
|
||||
}
|
||||
|
||||
if _, _, err = p.shouldBe(NAMESPACE); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if stmt.Name, err = p.parseName(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
@ -42,10 +38,6 @@ func (p *parser) parseRemoveNamespaceStatement() (stmt *RemoveNamespaceStatement
|
|||
return nil, err
|
||||
}
|
||||
|
||||
if _, _, err = p.shouldBe(NAMESPACE); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if stmt.Name, err = p.parseName(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue