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

在pgsql数据库查询时,仅检查当前选中的库的权限 #2709

Merged
merged 5 commits into from
Jul 1, 2024

Conversation

peixubin
Copy link
Contributor

@peixubin peixubin commented Jun 30, 2024

pgsql数据库查询模式中,用户发出查询会在表名中带上schemaname,比如“select * from xxx.tb” 。archery在处理类似的查询语句时,会将"xxx"作为数据库名来检查权限,也就是按照mysql模式来处理。

但这种处理方式在 pgsql 中会出错, 因此将 pgsql 加入特例中.

Copy link

request-info bot commented Jun 30, 2024

你好!感谢你反馈的问题/bug,但是你的描述好像是空的,我们需要你完整的信息,这样才能帮你解决问题 如果不知道怎么写,在新建issue的时候有若干个模板可供选择,祝好!

Copy link

codecov bot commented Jun 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.14%. Comparing base (24f86de) to head (15fd94e).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2709   +/-   ##
=======================================
  Coverage   77.13%   77.14%           
=======================================
  Files         117      117           
  Lines       16169    16174    +5     
=======================================
+ Hits        12472    12477    +5     
  Misses       3697     3697           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@LeoQuote LeoQuote changed the title 修复在pgsql数据库查询处理时,错误的使用schemaname作为dbname检查权限 在pgsql数据库查询时,仅检查当前选中的库的权限 Jul 1, 2024
@LeoQuote LeoQuote merged commit 5c9e83f into hhyo:master Jul 1, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants