Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
Shardingsphere
提交
90849c5b
Shardingsphere
项目概览
apache
/
Shardingsphere
通知
56
Star
3
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Shardingsphere
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
90849c5b
编写于
6月 04, 2019
作者:
T
tristaZero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
change import
上级
68e2fd6a
变更
19
显示空白变更内容
内联
并排
Showing
19 changed file
with
1 addition
and
21 deletion
+1
-21
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/rewriter/BaseSQLRewriter.java
...shardingsphere/core/rewrite/rewriter/BaseSQLRewriter.java
+1
-1
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/token/pojo/AggregationDistinctToken.java
...ere/core/rewrite/token/pojo/AggregationDistinctToken.java
+0
-1
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/token/pojo/EncryptColumnToken.java
...ingsphere/core/rewrite/token/pojo/EncryptColumnToken.java
+0
-1
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/token/pojo/IndexToken.java
...he/shardingsphere/core/rewrite/token/pojo/IndexToken.java
+0
-1
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/token/pojo/InsertAssistedColumnsToken.java
...e/core/rewrite/token/pojo/InsertAssistedColumnsToken.java
+0
-1
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/token/pojo/InsertColumnsToken.java
...ingsphere/core/rewrite/token/pojo/InsertColumnsToken.java
+0
-1
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/token/pojo/InsertGeneratedKeyToken.java
...here/core/rewrite/token/pojo/InsertGeneratedKeyToken.java
+0
-1
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/token/pojo/InsertSetAddAssistedColumnsToken.java
.../rewrite/token/pojo/InsertSetAddAssistedColumnsToken.java
+0
-1
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/token/pojo/InsertSetAddGeneratedKeyToken.java
...ore/rewrite/token/pojo/InsertSetAddGeneratedKeyToken.java
+0
-1
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/token/pojo/InsertSetEncryptValueToken.java
...e/core/rewrite/token/pojo/InsertSetEncryptValueToken.java
+0
-1
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/token/pojo/InsertValuesToken.java
...dingsphere/core/rewrite/token/pojo/InsertValuesToken.java
+0
-1
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/token/pojo/OffsetToken.java
...e/shardingsphere/core/rewrite/token/pojo/OffsetToken.java
+0
-1
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/token/pojo/OrderByToken.java
.../shardingsphere/core/rewrite/token/pojo/OrderByToken.java
+0
-1
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/token/pojo/RemoveToken.java
...e/shardingsphere/core/rewrite/token/pojo/RemoveToken.java
+0
-1
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/token/pojo/RowCountToken.java
...shardingsphere/core/rewrite/token/pojo/RowCountToken.java
+0
-1
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/token/pojo/SelectItemPrefixToken.java
...sphere/core/rewrite/token/pojo/SelectItemPrefixToken.java
+0
-1
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/token/pojo/SelectItemsToken.java
...rdingsphere/core/rewrite/token/pojo/SelectItemsToken.java
+0
-1
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/token/pojo/TableToken.java
...he/shardingsphere/core/rewrite/token/pojo/TableToken.java
+0
-1
sharding-core/sharding-core-rewrite/src/test/java/org/apache/shardingsphere/core/rewrite/rewriter/ShardingSQLRewriterTest.java
...sphere/core/rewrite/rewriter/ShardingSQLRewriterTest.java
+0
-3
未找到文件。
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/rewriter/BaseSQLRewriter.java
浏览文件 @
90849c5b
...
...
@@ -20,7 +20,7 @@ package org.apache.shardingsphere.core.rewrite.rewriter;
import
lombok.RequiredArgsConstructor
;
import
org.apache.shardingsphere.core.parse.sql.statement.SQLStatement
;
import
org.apache.shardingsphere.core.parse.sql.token.SQLToken
;
import
org.apache.shardingsphere.core.
parse.sql.token
.Substitutable
;
import
org.apache.shardingsphere.core.
rewrite.token.pojo
.Substitutable
;
import
org.apache.shardingsphere.core.rewrite.token.pojo.InsertColumnsToken
;
import
org.apache.shardingsphere.core.rewrite.builder.ParameterBuilder
;
import
org.apache.shardingsphere.core.rewrite.builder.SQLBuilder
;
...
...
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/token/pojo/AggregationDistinctToken.java
浏览文件 @
90849c5b
...
...
@@ -20,7 +20,6 @@ package org.apache.shardingsphere.core.rewrite.token.pojo;
import
com.google.common.base.Optional
;
import
lombok.Getter
;
import
org.apache.shardingsphere.core.parse.sql.token.SQLToken
;
import
org.apache.shardingsphere.core.parse.sql.token.Substitutable
;
/**
* Aggregation distinct token.
...
...
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/token/pojo/EncryptColumnToken.java
浏览文件 @
90849c5b
...
...
@@ -21,7 +21,6 @@ import lombok.Getter;
import
lombok.ToString
;
import
org.apache.shardingsphere.core.parse.sql.context.condition.Column
;
import
org.apache.shardingsphere.core.parse.sql.token.SQLToken
;
import
org.apache.shardingsphere.core.parse.sql.token.Substitutable
;
/**
* Encrypt column token.
...
...
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/token/pojo/IndexToken.java
浏览文件 @
90849c5b
...
...
@@ -21,7 +21,6 @@ import lombok.Getter;
import
lombok.ToString
;
import
org.apache.shardingsphere.core.parse.constant.QuoteCharacter
;
import
org.apache.shardingsphere.core.parse.sql.token.SQLToken
;
import
org.apache.shardingsphere.core.parse.sql.token.Substitutable
;
/**
* Index token.
...
...
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/token/pojo/InsertAssistedColumnsToken.java
浏览文件 @
90849c5b
...
...
@@ -20,7 +20,6 @@ package org.apache.shardingsphere.core.rewrite.token.pojo;
import
lombok.EqualsAndHashCode
;
import
lombok.Getter
;
import
lombok.ToString
;
import
org.apache.shardingsphere.core.parse.sql.token.Attachable
;
import
org.apache.shardingsphere.core.parse.sql.token.SQLToken
;
import
java.util.Collection
;
...
...
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/token/pojo/InsertColumnsToken.java
浏览文件 @
90849c5b
...
...
@@ -20,7 +20,6 @@ package org.apache.shardingsphere.core.rewrite.token.pojo;
import
lombok.EqualsAndHashCode
;
import
lombok.Getter
;
import
lombok.ToString
;
import
org.apache.shardingsphere.core.parse.sql.token.Attachable
;
import
org.apache.shardingsphere.core.parse.sql.token.SQLToken
;
import
java.util.Collection
;
...
...
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/token/pojo/InsertGeneratedKeyToken.java
浏览文件 @
90849c5b
...
...
@@ -20,7 +20,6 @@ package org.apache.shardingsphere.core.rewrite.token.pojo;
import
lombok.EqualsAndHashCode
;
import
lombok.Getter
;
import
lombok.ToString
;
import
org.apache.shardingsphere.core.parse.sql.token.Attachable
;
import
org.apache.shardingsphere.core.parse.sql.token.SQLToken
;
/**
...
...
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/token/pojo/InsertSetAddAssistedColumnsToken.java
浏览文件 @
90849c5b
...
...
@@ -18,7 +18,6 @@
package
org.apache.shardingsphere.core.rewrite.token.pojo
;
import
lombok.Getter
;
import
org.apache.shardingsphere.core.parse.sql.token.Attachable
;
import
org.apache.shardingsphere.core.parse.sql.token.SQLToken
;
import
java.util.Collection
;
...
...
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/token/pojo/InsertSetAddGeneratedKeyToken.java
浏览文件 @
90849c5b
...
...
@@ -18,7 +18,6 @@
package
org.apache.shardingsphere.core.rewrite.token.pojo
;
import
lombok.Getter
;
import
org.apache.shardingsphere.core.parse.sql.token.Attachable
;
import
org.apache.shardingsphere.core.parse.sql.token.SQLToken
;
/**
...
...
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/token/pojo/InsertSetEncryptValueToken.java
浏览文件 @
90849c5b
...
...
@@ -19,7 +19,6 @@ package org.apache.shardingsphere.core.rewrite.token.pojo;
import
lombok.Getter
;
import
org.apache.shardingsphere.core.parse.sql.token.SQLToken
;
import
org.apache.shardingsphere.core.parse.sql.token.Substitutable
;
/**
* Insert set encrypt value token.
...
...
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/token/pojo/InsertValuesToken.java
浏览文件 @
90849c5b
...
...
@@ -19,7 +19,6 @@ package org.apache.shardingsphere.core.rewrite.token.pojo;
import
lombok.Getter
;
import
org.apache.shardingsphere.core.parse.sql.token.SQLToken
;
import
org.apache.shardingsphere.core.parse.sql.token.Substitutable
;
/**
* Insert values token.
...
...
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/token/pojo/OffsetToken.java
浏览文件 @
90849c5b
...
...
@@ -19,7 +19,6 @@ package org.apache.shardingsphere.core.rewrite.token.pojo;
import
lombok.Getter
;
import
org.apache.shardingsphere.core.parse.sql.token.SQLToken
;
import
org.apache.shardingsphere.core.parse.sql.token.Substitutable
;
/**
* Offset token for limit.
...
...
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/token/pojo/OrderByToken.java
浏览文件 @
90849c5b
...
...
@@ -17,7 +17,6 @@
package
org.apache.shardingsphere.core.rewrite.token.pojo
;
import
org.apache.shardingsphere.core.parse.sql.token.Attachable
;
import
org.apache.shardingsphere.core.parse.sql.token.SQLToken
;
/**
...
...
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/token/pojo/RemoveToken.java
浏览文件 @
90849c5b
...
...
@@ -20,7 +20,6 @@ package org.apache.shardingsphere.core.rewrite.token.pojo;
import
lombok.Getter
;
import
lombok.ToString
;
import
org.apache.shardingsphere.core.parse.sql.token.SQLToken
;
import
org.apache.shardingsphere.core.parse.sql.token.Substitutable
;
/**
* Remove token.
...
...
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/token/pojo/RowCountToken.java
浏览文件 @
90849c5b
...
...
@@ -19,7 +19,6 @@ package org.apache.shardingsphere.core.rewrite.token.pojo;
import
lombok.Getter
;
import
org.apache.shardingsphere.core.parse.sql.token.SQLToken
;
import
org.apache.shardingsphere.core.parse.sql.token.Substitutable
;
/**
* Row count token for limit.
...
...
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/token/pojo/SelectItemPrefixToken.java
浏览文件 @
90849c5b
...
...
@@ -19,7 +19,6 @@ package org.apache.shardingsphere.core.rewrite.token.pojo;
import
lombok.Getter
;
import
lombok.Setter
;
import
org.apache.shardingsphere.core.parse.sql.token.Attachable
;
import
org.apache.shardingsphere.core.parse.sql.token.SQLToken
;
/**
...
...
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/token/pojo/SelectItemsToken.java
浏览文件 @
90849c5b
...
...
@@ -20,7 +20,6 @@ package org.apache.shardingsphere.core.rewrite.token.pojo;
import
lombok.EqualsAndHashCode
;
import
lombok.Getter
;
import
lombok.ToString
;
import
org.apache.shardingsphere.core.parse.sql.token.Attachable
;
import
org.apache.shardingsphere.core.parse.sql.token.SQLToken
;
import
java.util.Collection
;
...
...
sharding-core/sharding-core-rewrite/src/main/java/org/apache/shardingsphere/core/rewrite/token/pojo/TableToken.java
浏览文件 @
90849c5b
...
...
@@ -21,7 +21,6 @@ import lombok.Getter;
import
lombok.ToString
;
import
org.apache.shardingsphere.core.parse.constant.QuoteCharacter
;
import
org.apache.shardingsphere.core.parse.sql.token.SQLToken
;
import
org.apache.shardingsphere.core.parse.sql.token.Substitutable
;
import
org.apache.shardingsphere.core.parse.util.SQLUtil
;
/**
...
...
sharding-core/sharding-core-rewrite/src/test/java/org/apache/shardingsphere/core/rewrite/rewriter/ShardingSQLRewriterTest.java
浏览文件 @
90849c5b
...
...
@@ -537,9 +537,6 @@ public final class ShardingSQLRewriterTest {
List
<
Object
>
parameters
=
new
ArrayList
<>(
2
);
parameters
.
add
(
1
);
parameters
.
add
(
"x"
);
selectStatement
.
addSQLToken
(
new
TableToken
(
7
,
13
,
"table_x"
,
QuoteCharacter
.
NONE
));
selectStatement
.
addSQLToken
(
new
TableToken
(
31
,
37
,
"table_x"
,
QuoteCharacter
.
NONE
));
selectStatement
.
addSQLToken
(
new
TableToken
(
58
,
64
,
"table_x"
,
QuoteCharacter
.
NONE
));
selectStatement
.
getTables
().
add
(
new
Table
(
"table_x"
,
"x"
));
selectStatement
.
getTables
().
add
(
new
Table
(
"table_y"
,
"y"
));
routeResult
=
new
SQLRouteResult
(
selectStatement
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录