diff --git a/sql/trans.go b/sql/trans.go index 3087d78d..121f2b48 100644 --- a/sql/trans.go +++ b/sql/trans.go @@ -18,10 +18,6 @@ func (p *parser) parseBeginStatement() (stmt *BeginStatement, err error) { stmt = &BeginStatement{} - if _, _, _, err = p.o.get(AuthSC); err != nil { - return nil, err - } - _, _, _ = p.mightBe(TRANSACTION) if _, _, err = p.shouldBe(EOF, SEMICOLON); err != nil { @@ -36,10 +32,6 @@ func (p *parser) parseCancelStatement() (stmt *CancelStatement, err error) { stmt = &CancelStatement{} - if _, _, _, err = p.o.get(AuthSC); err != nil { - return nil, err - } - _, _, _ = p.mightBe(TRANSACTION) if _, _, err = p.shouldBe(EOF, SEMICOLON); err != nil { @@ -54,10 +46,6 @@ func (p *parser) parseCommitStatement() (stmt *CommitStatement, err error) { stmt = &CommitStatement{} - if _, _, _, err = p.o.get(AuthSC); err != nil { - return nil, err - } - _, _, _ = p.mightBe(TRANSACTION) if _, _, err = p.shouldBe(EOF, SEMICOLON); err != nil {