This is an automated email from the ASF dual-hosted git repository.
chengzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 4102cc51db7 Revise BaeseRule for PR 30249 (#30270)
4102cc51db7 is described below
commit 4102cc51db70c30b633de27b37e901f60b5c0c84
Author: Zhengqiang Duan <[email protected]>
AuthorDate: Sat Feb 24 15:37:33 2024 +0800
Revise BaeseRule for PR 30249 (#30270)
---
.../sqlserver/src/main/antlr4/imports/sqlserver/BaseRule.g4 | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git
a/parser/sql/dialect/sqlserver/src/main/antlr4/imports/sqlserver/BaseRule.g4
b/parser/sql/dialect/sqlserver/src/main/antlr4/imports/sqlserver/BaseRule.g4
index 380e20c58aa..2438350d95c 100644
--- a/parser/sql/dialect/sqlserver/src/main/antlr4/imports/sqlserver/BaseRule.g4
+++ b/parser/sql/dialect/sqlserver/src/main/antlr4/imports/sqlserver/BaseRule.g4
@@ -315,13 +315,15 @@ distinct
;
specialFunction
- : conversionFunction | charFunction | openJsonFunction | jsonFunction |
openRowSetFunction | windowFunction | approxFunction | openDatasourceFunction |
rowNumberFunction | graphFunction | trimFunction
+ : conversionFunction | charFunction | openJsonFunction | jsonFunction |
openRowSetFunction
+ | windowFunction | approxFunction | openDatasourceFunction |
rowNumberFunction | graphFunction
+ | trimFunction
;
- trimFunction
- : TRIM LP_ ((LEADING | BOTH | TRAILING) expr? FROM)? expr RP_
- | TRIM LP_ (expr FROM)? expr RP_
- ;
+trimFunction
+ : TRIM LP_ ((LEADING | BOTH | TRAILING) expr? FROM)? expr RP_
+ | TRIM LP_ (expr FROM)? expr RP_
+ ;
graphFunction
: graphAggFunction