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

如果排序的是关键字,怎么办? #2

Open
yejq opened this issue Jun 8, 2015 · 0 comments
Open

如果排序的是关键字,怎么办? #2

yejq opened this issue Jun 8, 2015 · 0 comments

Comments

@yejq
Copy link

yejq commented Jun 8, 2015

数据库Mysql,
比如order by key asc,是报错的,因为key是关键字;
这时候要修改为order by key asc;尝试修改代码写成:
new PageBounds(Order.formString("key.asc"))
但会报错,因为Order类中INJECTION_REGEX正则定义没有包含“`”;
private static String INJECTION_REGEX = "[A-Za-z0-9_-+.]+";

是否可以加上解决这个问题,谢谢!

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

1 participant