Enable main SQL commands to be within subqueries
This commit is contained in:
parent
dd21b8879a
commit
1733f84070
5 changed files with 5 additions and 5 deletions
|
@ -36,7 +36,7 @@ func (p *parser) parseCreateStatement() (stmt *CreateStatement, err error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
if _, _, err = p.shouldBe(EOF, SEMICOLON); err != nil {
|
||||
if _, _, err = p.shouldBe(EOF, RPAREN, SEMICOLON); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ func (p *parser) parseDeleteStatement() (stmt *DeleteStatement, err error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
if _, _, err = p.shouldBe(EOF, SEMICOLON); err != nil {
|
||||
if _, _, err = p.shouldBe(EOF, RPAREN, SEMICOLON); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ func (p *parser) parseRelateStatement() (stmt *RelateStatement, err error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
if _, _, err = p.shouldBe(EOF, SEMICOLON); err != nil {
|
||||
if _, _, err = p.shouldBe(EOF, RPAREN, SEMICOLON); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ func (p *parser) parseSelectStatement() (stmt *SelectStatement, err error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
if _, _, err = p.shouldBe(EOF, SEMICOLON); err != nil {
|
||||
if _, _, err = p.shouldBe(EOF, RPAREN, SEMICOLON); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ func (p *parser) parseUpdateStatement() (stmt *UpdateStatement, err error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
if _, _, err = p.shouldBe(EOF, SEMICOLON); err != nil {
|
||||
if _, _, err = p.shouldBe(EOF, RPAREN, SEMICOLON); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue