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

Nacos-2.3.2新增角色资源关联时报错bad SQL grammar [INSERT INTO permissions (role, resource, action) VALUES (?, ?, ?)]; nested exception is java.sql.SQLSyntaxErrorException: ORA-01747: user.table.column, table.column 或列说明无效 #43

Open
HelloSSM opened this issue Jul 9, 2024 · 1 comment

Comments

@HelloSSM
Copy link

HelloSSM commented Jul 9, 2024

caused: PreparedStatementCallback; bad SQL grammar [INSERT INTO permissions (role, resource, action) VALUES (?, ?, ?)]; nested exception is java.sql.SQLSyntaxErrorException: ORA-01747: user.table.column, table.column 或列说明无效 ;caused: ORA-01747: user.table.column, table.column 或列说明无效 ;caused: ORA-01747: user.table.column, table.column 或列说明无效 ;

使用的oracle作为数据源,新增角色资源关联时报错,看了一下代码,貌似Nacos官网还没开放这个Mapper的重写适配,关于permissions表的查询和新增的sql都是在ExternalPermissionPersistServiceImpl类里整的硬编码,刚好permissions表中的resource字段,是oracle数据库里的关键字了,使用的oracle版本为19c

@Deomaning
Copy link

我也遇到了这个问题=-=,添加配置还会报错缺失表达式

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