Add authentication level checks to SQL INFO query
This commit is contained in:
parent
b25ce6d059
commit
2783c4c653
1 changed files with 3 additions and 3 deletions
|
@ -18,9 +18,9 @@ func (p *parser) parseInfoStatement() (stmt *InfoStatement, err error) {
|
||||||
|
|
||||||
stmt = &InfoStatement{}
|
stmt = &InfoStatement{}
|
||||||
|
|
||||||
stmt.KV = p.c.Get("KV").(string)
|
if stmt.KV, stmt.NS, stmt.DB, err = p.o.get(AuthDB); err != nil {
|
||||||
stmt.NS = p.c.Get("NS").(string)
|
return nil, err
|
||||||
stmt.DB = p.c.Get("DB").(string)
|
}
|
||||||
|
|
||||||
if _, _, exi := p.mightBe(FOR); exi {
|
if _, _, exi := p.mightBe(FOR); exi {
|
||||||
if stmt.What, err = p.parseName(); err != nil {
|
if stmt.What, err = p.parseName(); err != nil {
|
||||||
|
|
Loading…
Reference in a new issue