This is an automated email from the ASF dual-hosted git repository.
zhaojinchao 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 e60d46ac5b3 Add exclude bind columns. (#28335)
e60d46ac5b3 is described below
commit e60d46ac5b32f8193e89cf4fc3f7f4de81d4039d
Author: Chuxin Chen <[email protected]>
AuthorDate: Mon Sep 4 09:50:07 2023 +0800
Add exclude bind columns. (#28335)
* Add table not exists exception.
* Add table not exists exception.
* Add table not exists exception.
* Add table not exists exception.
* Add exclude bind columns.
---
.../infra/binder/segment/expression/impl/ColumnSegmentBinder.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/infra/binder/src/main/java/org/apache/shardingsphere/infra/binder/segment/expression/impl/ColumnSegmentBinder.java
b/infra/binder/src/main/java/org/apache/shardingsphere/infra/binder/segment/expression/impl/ColumnSegmentBinder.java
index 64d7156befe..6d66e493c95 100644
---
a/infra/binder/src/main/java/org/apache/shardingsphere/infra/binder/segment/expression/impl/ColumnSegmentBinder.java
+++
b/infra/binder/src/main/java/org/apache/shardingsphere/infra/binder/segment/expression/impl/ColumnSegmentBinder.java
@@ -47,7 +47,8 @@ import java.util.Optional;
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public final class ColumnSegmentBinder {
- private static final Collection<String> EXCLUDE_BIND_COLUMNS = new
LinkedHashSet<>(Arrays.asList("ROWNUM", "ROW_NUMBER", "ROWNUM_"));
+ private static final Collection<String> EXCLUDE_BIND_COLUMNS = new
LinkedHashSet<>(Arrays.asList("ROWNUM", "ROW_NUMBER", "ROWNUM_", "SYSDATE",
"SYSTIMESTAMP", "CURRENT_TIMESTAMP",
+ "LOCALTIMESTAMP", "UID", "USER"));
private static final Map<SegmentType, String> SEGMENT_TYPE_MESSAGES =
Maps.of(SegmentType.PROJECTION, "field list", SegmentType.JOIN_ON, "on clause",
SegmentType.JOIN_USING, "from clause",
SegmentType.PREDICATE, "where clause", SegmentType.ORDER_BY,
"order clause", SegmentType.GROUP_BY, "group statement");