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

报错:OracleForStatement not allow : declare ... #4938

Closed
dx19500 opened this issue Sep 16, 2022 · 1 comment
Closed

报错:OracleForStatement not allow : declare ... #4938

dx19500 opened this issue Sep 16, 2022 · 1 comment
Labels
Milestone

Comments

@dx19500
Copy link

dx19500 commented Sep 16, 2022

自定义了一个动态sql,里面执行一段存储过程:
declare
cnt number(16):=0;
begin
--这里面是业务代码
commit;
end;

然后执行,报错:
com.alibaba.druid.sql.dialect.oracle.ast.stmt.OracleForStatement not allow :declare。。。。

@wenshao wenshao added this to the 1.2.13 milestone Sep 19, 2022
@wenshao wenshao added the Bug label Oct 5, 2022
wenshao added a commit that referenced this issue Oct 5, 2022
@wenshao
Copy link
Member

wenshao commented Oct 6, 2022

https://github.com/alibaba/druid/releases/tag/1.2.13
问题已修复,请用新版本

@wenshao wenshao closed this as completed Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants