Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

执行session.execute时,普通用户“use ${space}”语句和其他查询语句一起执行提示“No space selected” #318

Closed
Jabinst opened this issue Jun 28, 2021 · 1 comment

Comments

@Jabinst
Copy link
Contributor

Jabinst commented Jun 28, 2021

我在数据库创建了个用户admin,授权了Admin角色
执行

Session session = pool.getSession("admin", "*****", false);
session.execute("use friend_chain;fetch prop on user \"1000003127\" ;");

会提示No space selected,必须将切换图空间和查询语句分开才行,如下:

Session session = pool.getSession("admin", "*****", false);
session.execute("use friend_chain");
session.execute("fetch prop on user \"1000003127\" ;");

但是使用root用户(God角色)是没问题的。

麻烦看下这个问题,毕竟执行两次execute会增加网络延迟的

@Jabinst Jabinst changed the title 执行session.execute时,普通用户“use ${space}”语句和其他查询语句一起执行 执行session.execute时,普通用户“use ${space}”语句和其他查询语句一起执行提示“No space selected” Jun 28, 2021
@laura-ding
Copy link
Contributor

laura-ding commented Jun 28, 2021

@Jabinst Thanks for your question, the same issue vesoft-inc/nebula-graph#1109. And the bug has fixed by vesoft-inc/nebula-graph#1165

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants