mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
fix use command
This commit is contained in:
parent
547c64397c
commit
69af3246db
1 changed files with 7 additions and 2 deletions
|
|
@ -469,9 +469,13 @@ function parse_query(query, indexname) {
|
|||
var command = keys[0];
|
||||
var command_type = keys[1];
|
||||
var command_name = keys[2];
|
||||
if (!command_name){
|
||||
return {}
|
||||
|
||||
if (command !== ":use") {
|
||||
if (!command_name){
|
||||
return {}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
var parsed_query = {};
|
||||
parsed_query["command"] = command.substr(1, command.length);
|
||||
|
|
@ -504,6 +508,7 @@ function parse_query(query, indexname) {
|
|||
}
|
||||
break;
|
||||
case ":use":
|
||||
parsed_query["command_name"] = keys[1];
|
||||
break;
|
||||
default:
|
||||
return {}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue