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

ExternalPermissionPersistServiceImpl 这个源码中的sql语句的resource,在oracle 19中是关键字 #12964

Open
lieying93 opened this issue Dec 18, 2024 · 6 comments

Comments

@lieying93
Copy link

ExternalPermissionPersistServiceImpl 这个源码中的sql语句的resource,在oracle 19中是关键字,还是没法支持oracle数据源呢?能改成
能改成 SELECT * FROM permissions WHERE 吗?

@lieying93
Copy link
Author

    String sqlFetchRows = "SELECT role,resource,action FROM permissions WHERE "; 中的resource 在oracle中不适用
  String sqlFetchRows = "SELECT * FROM permissions WHERE "; 

@KomachiSion
Copy link
Collaborator

是否应该在oracle插件中对这个字段做一些特殊处理?

@lieying93
Copy link
Author

lieying93 commented Dec 19, 2024 via email

@lieying93
Copy link
Author

lieying93 commented Dec 19, 2024 via email

@bes2008
Copy link

bes2008 commented Dec 23, 2024

可以试用一下这个 插件:https://github.com/bes2008/nacos-plugins

@KomachiSion
Copy link
Collaborator

KomachiSion commented Dec 24, 2024

我看了一下是鉴权插件的SQL问题, nacos默认的鉴权插件不支持mysql和支持mysql协议意外的数据库。

这是因为鉴权插件和数据库插件是两个独立的插件, 不存在互相依赖的关系, 如果需要鉴权插件支持oracle等其他数据库,可以参考默认插件进行拓展开发自定义插件。

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

No branches or pull requests

3 participants