Enable main SQL commands to be within subqueries

This commit is contained in:
Tobie Morgan Hitchcock 2016-11-03 17:20:18 +00:00
parent dd21b8879a
commit 1733f84070
5 changed files with 5 additions and 5 deletions

View file

@ -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
}

View file

@ -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
}

View file

@ -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
}

View file

@ -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
}

View file

@ -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
}