No need to have selected a NS/DB for transactions

This commit is contained in:
Tobie Morgan Hitchcock 2016-11-17 14:18:33 +00:00
parent a57c2733fa
commit 0fa8537624

View file

@ -18,10 +18,6 @@ func (p *parser) parseBeginStatement() (stmt *BeginStatement, err error) {
stmt = &BeginStatement{} stmt = &BeginStatement{}
if _, _, _, err = p.o.get(AuthSC); err != nil {
return nil, err
}
_, _, _ = p.mightBe(TRANSACTION) _, _, _ = p.mightBe(TRANSACTION)
if _, _, err = p.shouldBe(EOF, SEMICOLON); err != nil { if _, _, err = p.shouldBe(EOF, SEMICOLON); err != nil {
@ -36,10 +32,6 @@ func (p *parser) parseCancelStatement() (stmt *CancelStatement, err error) {
stmt = &CancelStatement{} stmt = &CancelStatement{}
if _, _, _, err = p.o.get(AuthSC); err != nil {
return nil, err
}
_, _, _ = p.mightBe(TRANSACTION) _, _, _ = p.mightBe(TRANSACTION)
if _, _, err = p.shouldBe(EOF, SEMICOLON); err != nil { if _, _, err = p.shouldBe(EOF, SEMICOLON); err != nil {
@ -54,10 +46,6 @@ func (p *parser) parseCommitStatement() (stmt *CommitStatement, err error) {
stmt = &CommitStatement{} stmt = &CommitStatement{}
if _, _, _, err = p.o.get(AuthSC); err != nil {
return nil, err
}
_, _, _ = p.mightBe(TRANSACTION) _, _, _ = p.mightBe(TRANSACTION)
if _, _, err = p.shouldBe(EOF, SEMICOLON); err != nil { if _, _, err = p.shouldBe(EOF, SEMICOLON); err != nil {