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

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

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

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

yejq opened this issue Jun 8, 2015 · 2 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_-+.]+";

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

@lidatui
Copy link
Owner

lidatui commented Jul 23, 2015

这个我当时确实没有考虑到,下个版会解决一下,谢谢啦

@yejq
Copy link
Author

yejq commented Jul 23, 2015

thanks

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