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

add orm support 修改@column中的解析代码,使之支持字符串 #305

Merged
merged 1 commit into from
Sep 23, 2021
Merged

Conversation

qiujunlin
Copy link
Contributor

1.支持了单引号字符串。判断了单引号,并加了字符串正则 PATTERN_STRING = Pattern.compile("^[,#;"`]+$");防止sql注入 。

2.支持了窗口函数

3.修改了 PATTERN_FUNCTION 正则 ,加了括号匹配,参数中可以有函数

3.把sql函数和RAW_MAP代码移动到了新的类FunctionsAndRaws中。在SQL_FUNCTION_MAP添加了clickhouse的函数,并在RAW_MAP中添加了解析的关键字。

因为加上clickhosue的函数之后,AbstractSqlConfig 的代码多了很多行。将函数单独放一个类使AbstractSqlConfig 中的代码不那么拥挤

@qiujunlin qiujunlin changed the title add orm support 修改了@column add orm support 修改@column中的解析代码,使之支持字符串 Sep 2, 2021
qiujunlin referenced this pull request in qiujunlin/APIJSONDemo Sep 8, 2021
@TommyLemon TommyLemon merged commit 532054a into Tencent:master Sep 23, 2021
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

Successfully merging this pull request may close these issues.

2 participants