Closed
Description
问题是否已经被报告?
- 我已经搜索了当前存在的问题
重现步骤
- RDS非直连,是通过ssh隧道连接的。
- admin账号可以正常查询
- 其他的普通账号,赋权后遇到这个报错:
无法校验查询语句权限,请联系管理员,错误信息:list index out of range
预期外的结果
日志文本
[2022-06-15 17:56:03,088][MainThread:140563078104896][task_id:default][query_privileges.py:85][ERROR]- 无法校验查询语句权限,RDS,select * from accessory,Traceback (most recent call last):
File "/opt/archery/sql/query_privileges.py", line 69, in query_priv_check
table_ref = _table_ref(sql_content, instance, db_name)
File "/opt/archery/sql/query_privileges.py", line 409, in _table_ref
query_tree = engine.query_print(instance=instance, db_name=db_name, sql=sql_content).get('query_tree')
File "/opt/archery/sql/engines/goinception.py", line 163, in query_print
print_info = self.query(db_name=db_name, sql=sql).to_dict()[1]
IndexError: list index out of range
版本
1.8.5
部署方式
Docker
是否还有其他可以辅助定位问题的信息?比如数据库、浏览器、goInception等
goInception的日志:
time="2022/06/15 17:56:03.087" level=error msg="con:15 con:15 dial tcp 127.0.0.1:37827: connect: connection refused" file=session_inception.go func=parseOptions line=2114