No need to have selected a NS/DB for transactions
This commit is contained in:
parent
a57c2733fa
commit
0fa8537624
1 changed files with 0 additions and 12 deletions
12
sql/trans.go
12
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 {
|
||||
|
|
Loading…
Reference in a new issue