From 7d88c389e1b9a6a38a3b868867543b7d7ecbc535 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Fri, 10 Feb 2017 09:46:49 +0000 Subject: [PATCH] Enable use of SQL DEFINE/REMOVE in transactions --- sql/define.go | 4 ---- sql/remove.go | 4 ---- 2 files changed, 8 deletions(-) diff --git a/sql/define.go b/sql/define.go index 71f9bb98..cd93569c 100644 --- a/sql/define.go +++ b/sql/define.go @@ -16,10 +16,6 @@ package sql func (p *parser) parseDefineStatement() (Statement, error) { - if p.buf.txn { - return nil, &TXError{} - } - // Inspect the next token. tok, _, err := p.shouldBe(NAMESPACE, DATABASE, LOGIN, TOKEN, SCOPE, TABLE, FIELD, INDEX, VIEW) diff --git a/sql/remove.go b/sql/remove.go index 72c6583e..dec2e8a2 100644 --- a/sql/remove.go +++ b/sql/remove.go @@ -16,10 +16,6 @@ package sql func (p *parser) parseRemoveStatement() (Statement, error) { - if p.buf.txn { - return nil, &TXError{} - } - // Inspect the next token. tok, _, err := p.shouldBe(NAMESPACE, DATABASE, LOGIN, TOKEN, SCOPE, TABLE, FIELD, INDEX, VIEW)