diff --git a/sql/options.go b/sql/options.go index ec18a10b..626e09fd 100644 --- a/sql/options.go +++ b/sql/options.go @@ -54,7 +54,12 @@ func (o *options) get(kind int) (kv, ns, db string, err error) { return } - if ns == "" || db == "" { + if kind >= AuthNS && ns == "" { + err = &BlankError{} + return + } + + if kind >= AuthDB && db == "" { err = &BlankError{} return }