diff --git a/sql/create.go b/sql/create.go index 27578776..4341f3a6 100644 --- a/sql/create.go +++ b/sql/create.go @@ -18,7 +18,7 @@ func (p *parser) parseCreateStatement() (stmt *CreateStatement, err error) { stmt = &CreateStatement{} - if stmt.KV, stmt.NS, stmt.DB, err = p.o.get(AuthTB); err != nil { + if stmt.KV, stmt.NS, stmt.DB, err = p.o.get(AuthSC); err != nil { return nil, err } diff --git a/sql/delete.go b/sql/delete.go index a5eeb45b..fef8a411 100644 --- a/sql/delete.go +++ b/sql/delete.go @@ -18,7 +18,7 @@ func (p *parser) parseDeleteStatement() (stmt *DeleteStatement, err error) { stmt = &DeleteStatement{} - if stmt.KV, stmt.NS, stmt.DB, err = p.o.get(AuthTB); err != nil { + if stmt.KV, stmt.NS, stmt.DB, err = p.o.get(AuthSC); err != nil { return nil, err } diff --git a/sql/let.go b/sql/let.go index bdf11321..861bea11 100644 --- a/sql/let.go +++ b/sql/let.go @@ -20,7 +20,7 @@ func (p *parser) parseLetStatement() (stmt *LetStatement, err error) { stmt = &LetStatement{} - if stmt.KV, stmt.NS, stmt.DB, err = p.o.get(AuthTB); err != nil { + if stmt.KV, stmt.NS, stmt.DB, err = p.o.get(AuthSC); err != nil { return nil, err } diff --git a/sql/options.go b/sql/options.go index f1031d68..63e06ee1 100644 --- a/sql/options.go +++ b/sql/options.go @@ -27,7 +27,7 @@ const ( // Database access AuthDB // Scoped user access - AuthTB + AuthSC // No access AuthNO ) diff --git a/sql/relate.go b/sql/relate.go index d1788eb6..0182f07c 100644 --- a/sql/relate.go +++ b/sql/relate.go @@ -18,7 +18,7 @@ func (p *parser) parseRelateStatement() (stmt *RelateStatement, err error) { stmt = &RelateStatement{} - if stmt.KV, stmt.NS, stmt.DB, err = p.o.get(AuthTB); err != nil { + if stmt.KV, stmt.NS, stmt.DB, err = p.o.get(AuthSC); err != nil { return nil, err } diff --git a/sql/return.go b/sql/return.go index e3d8715b..b41658be 100644 --- a/sql/return.go +++ b/sql/return.go @@ -18,7 +18,7 @@ func (p *parser) parseReturnStatement() (stmt *ReturnStatement, err error) { stmt = &ReturnStatement{} - if stmt.KV, stmt.NS, stmt.DB, err = p.o.get(AuthTB); err != nil { + if stmt.KV, stmt.NS, stmt.DB, err = p.o.get(AuthSC); err != nil { return nil, err } diff --git a/sql/select.go b/sql/select.go index 81616049..ea9a483c 100644 --- a/sql/select.go +++ b/sql/select.go @@ -18,7 +18,7 @@ func (p *parser) parseSelectStatement() (stmt *SelectStatement, err error) { stmt = &SelectStatement{} - if stmt.KV, stmt.NS, stmt.DB, err = p.o.get(AuthTB); err != nil { + if stmt.KV, stmt.NS, stmt.DB, err = p.o.get(AuthSC); err != nil { return nil, err } diff --git a/sql/trans.go b/sql/trans.go index 6621dc2a..3087d78d 100644 --- a/sql/trans.go +++ b/sql/trans.go @@ -18,7 +18,7 @@ func (p *parser) parseBeginStatement() (stmt *BeginStatement, err error) { stmt = &BeginStatement{} - if _, _, _, err = p.o.get(AuthTB); err != nil { + if _, _, _, err = p.o.get(AuthSC); err != nil { return nil, err } @@ -36,7 +36,7 @@ func (p *parser) parseCancelStatement() (stmt *CancelStatement, err error) { stmt = &CancelStatement{} - if _, _, _, err = p.o.get(AuthTB); err != nil { + if _, _, _, err = p.o.get(AuthSC); err != nil { return nil, err } @@ -54,7 +54,7 @@ func (p *parser) parseCommitStatement() (stmt *CommitStatement, err error) { stmt = &CommitStatement{} - if _, _, _, err = p.o.get(AuthTB); err != nil { + if _, _, _, err = p.o.get(AuthSC); err != nil { return nil, err } diff --git a/sql/update.go b/sql/update.go index e7b88000..c245cde0 100644 --- a/sql/update.go +++ b/sql/update.go @@ -18,7 +18,7 @@ func (p *parser) parseUpdateStatement() (stmt *UpdateStatement, err error) { stmt = &UpdateStatement{} - if stmt.KV, stmt.NS, stmt.DB, err = p.o.get(AuthTB); err != nil { + if stmt.KV, stmt.NS, stmt.DB, err = p.o.get(AuthSC); err != nil { return nil, err }