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

class com.alibaba.druid.sql.ast.statement.SQLCommentStatement not allow #1759

Closed
zzx8170 opened this issue May 25, 2017 · 5 comments
Closed
Labels
Milestone

Comments

@zzx8170
Copy link

zzx8170 commented May 25, 2017

druid 版本:1.0.29

sql is:
COMMENT ON COLUMN "TB_CRM_MATERIAL"."INVALID_TIME" IS '生效时间'

调用方法:
OracleStatementParser parser = new OracleStatementParser(sql);
SQLStatement statement = parser.parseStatement();// 分号之后多语句忽略
OracleWallProvider provider = new OracleWallProvider();
provider.getConfig().setCommentAllow(true);
WallCheckResult result1 = provider.check(sql);

执行报:class com.alibaba.druid.sql.ast.statement.SQLCommentStatement not allow

@zzx8170
Copy link
Author

zzx8170 commented May 25, 2017

我看之前温少说过1.0.28修复,但1.0.27 和 1.0.28 都尝试了,问题一样,最新的1.0.31,问题依旧

@wenshao wenshao added the Bug label May 30, 2017
@wenshao wenshao added this to the 1.0.32 milestone May 30, 2017
@wenshao wenshao modified the milestones: 1.1.0, 1.0.32 Jun 25, 2017
@wenshao
Copy link
Member

wenshao commented Jun 25, 2017

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

@wenshao wenshao closed this as completed Jun 25, 2017
@zzx8170
Copy link
Author

zzx8170 commented Jul 3, 2017

之前partition bug解决,但comment问题在1.1.0中仍然存在,难道是我用错了吗?

sql is:
COMMENT ON COLUMN "TB_CRM_MATERIAL"."INVALID_TIME" IS '生效时间'

调用方法:
OracleStatementParser parser = new OracleStatementParser(sql);
SQLStatement statement = parser.parseStatement();// 分号之后多语句忽略
OracleWallProvider provider = new OracleWallProvider();
provider.getConfig().setCommentAllow(true);
WallCheckResult result1 = provider.check(sql);

执行报:class com.alibaba.druid.sql.ast.statement.SQLCommentStatement not allow

@wenshao wenshao modified the milestones: 1.1.11, 1.1.0 Jul 11, 2017
wenshao added a commit that referenced this issue Jul 11, 2017
@wenshao
Copy link
Member

wenshao commented Jul 13, 2017

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

@wenshao wenshao reopened this Jul 13, 2017
@wenshao wenshao closed this as completed Jul 13, 2017
@baikeh
Copy link

baikeh commented Mar 8, 2019

1.1.14 版本的springboot配置了:druid.filter.wall.config.comment-allow: true,依然拦截 comment (mysql)

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

3 participants