Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
Shardingsphere
提交
84ef0c10
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,发现更多精彩内容 >>
提交
84ef0c10
编写于
1月 15, 2020
作者:
T
terrymanu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add table owner and delimiter assertion
上级
51ad92f0
变更
17
隐藏空白更改
内联
并排
Showing
17 changed file
with
177 addition
and
62 deletion
+177
-62
shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/test/java/org/apache/shardingsphere/sql/parser/integrate/asserts/table/TableAssert.java
...phere/sql/parser/integrate/asserts/table/TableAssert.java
+23
-4
shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/test/java/org/apache/shardingsphere/sql/parser/integrate/jaxb/table/ExpectedTable.java
...sphere/sql/parser/integrate/jaxb/table/ExpectedTable.java
+10
-0
shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/test/java/org/apache/shardingsphere/sql/parser/integrate/jaxb/table/ExpectedTableOwner.java
...e/sql/parser/integrate/jaxb/table/ExpectedTableOwner.java
+46
-0
shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/test/resources/sql/dal/show.xml
...phere-sql-parser-test/src/test/resources/sql/dal/show.xml
+7
-3
shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/test/resources/sql/dcl/grant_user.xml
...sql-parser-test/src/test/resources/sql/dcl/grant_user.xml
+27
-9
shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/test/resources/sql/dcl/revoke_user.xml
...ql-parser-test/src/test/resources/sql/dcl/revoke_user.xml
+24
-8
shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/test/resources/sql/ddl/alter.xml
...here-sql-parser-test/src/test/resources/sql/ddl/alter.xml
+5
-5
shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/test/resources/sql/ddl/create.xml
...ere-sql-parser-test/src/test/resources/sql/ddl/create.xml
+8
-8
shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/test/resources/sql/ddl/drop.xml
...phere-sql-parser-test/src/test/resources/sql/ddl/drop.xml
+7
-7
shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/test/resources/sql/ddl/truncate.xml
...e-sql-parser-test/src/test/resources/sql/ddl/truncate.xml
+4
-4
shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/test/resources/sql/dml/delete.xml
...ere-sql-parser-test/src/test/resources/sql/dml/delete.xml
+1
-1
shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/test/resources/sql/dml/insert.xml
...ere-sql-parser-test/src/test/resources/sql/dml/insert.xml
+1
-1
shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/test/resources/sql/dml/select.xml
...ere-sql-parser-test/src/test/resources/sql/dml/select.xml
+7
-5
shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/test/resources/sql/dml/select_expression.xml
...ser-test/src/test/resources/sql/dml/select_expression.xml
+1
-1
shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/test/resources/sql/dml/select_group_by.xml
...arser-test/src/test/resources/sql/dml/select_group_by.xml
+1
-1
shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/test/resources/sql/dml/select_pagination.xml
...ser-test/src/test/resources/sql/dml/select_pagination.xml
+4
-4
shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/test/resources/sql/dml/update.xml
...ere-sql-parser-test/src/test/resources/sql/dml/update.xml
+1
-1
未找到文件。
shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/test/java/org/apache/shardingsphere/sql/parser/integrate/asserts/table/TableAssert.java
浏览文件 @
84ef0c10
...
@@ -20,6 +20,8 @@ package org.apache.shardingsphere.sql.parser.integrate.asserts.table;
...
@@ -20,6 +20,8 @@ package org.apache.shardingsphere.sql.parser.integrate.asserts.table;
import
lombok.RequiredArgsConstructor
;
import
lombok.RequiredArgsConstructor
;
import
org.apache.shardingsphere.sql.parser.integrate.asserts.SQLStatementAssertMessage
;
import
org.apache.shardingsphere.sql.parser.integrate.asserts.SQLStatementAssertMessage
;
import
org.apache.shardingsphere.sql.parser.integrate.jaxb.table.ExpectedTable
;
import
org.apache.shardingsphere.sql.parser.integrate.jaxb.table.ExpectedTable
;
import
org.apache.shardingsphere.sql.parser.integrate.jaxb.table.ExpectedTableOwner
;
import
org.apache.shardingsphere.sql.parser.sql.segment.generic.SchemaSegment
;
import
org.apache.shardingsphere.sql.parser.sql.segment.generic.TableSegment
;
import
org.apache.shardingsphere.sql.parser.sql.segment.generic.TableSegment
;
import
java.util.Collection
;
import
java.util.Collection
;
...
@@ -48,11 +50,28 @@ public final class TableAssert {
...
@@ -48,11 +50,28 @@ public final class TableAssert {
assertThat
(
assertMessage
.
getText
(
"Tables size assertion error: "
),
actual
.
size
(),
is
(
expected
.
size
()));
assertThat
(
assertMessage
.
getText
(
"Tables size assertion error: "
),
actual
.
size
(),
is
(
expected
.
size
()));
int
count
=
0
;
int
count
=
0
;
for
(
TableSegment
each
:
actual
)
{
for
(
TableSegment
each
:
actual
)
{
assertThat
(
assertMessage
.
getText
(
"Table name assertion error: "
),
each
.
getTableName
(),
is
(
expected
.
get
(
count
).
getName
()));
assertTable
(
each
,
expected
.
get
(
count
));
assertThat
(
assertMessage
.
getText
(
"Table alias assertion error: "
),
each
.
getAlias
().
orNull
(),
is
(
expected
.
get
(
count
).
getAlias
()));
assertThat
(
assertMessage
.
getText
(
"Table start index assertion error: "
),
each
.
getStartIndex
(),
is
(
expected
.
get
(
count
).
getStartIndex
()));
assertThat
(
assertMessage
.
getText
(
"Table stop index assertion error: "
),
each
.
getStopIndex
(),
is
(
expected
.
get
(
count
).
getStopIndex
()));
count
++;
count
++;
}
}
}
}
private
void
assertTable
(
final
TableSegment
actual
,
final
ExpectedTable
expected
)
{
assertThat
(
assertMessage
.
getText
(
"Table name assertion error: "
),
actual
.
getTableName
(),
is
(
expected
.
getName
()));
assertThat
(
assertMessage
.
getText
(
"Table alias assertion error: "
),
actual
.
getAlias
().
orNull
(),
is
(
expected
.
getAlias
()));
if
(
actual
.
getOwner
().
isPresent
())
{
assertOwner
(
actual
.
getOwner
().
get
(),
expected
.
getOwner
());
}
assertThat
(
assertMessage
.
getText
(
"Table start delimiter assertion error: "
),
actual
.
getTableQuoteCharacter
().
getStartDelimiter
(),
is
(
expected
.
getStartDelimiter
()));
assertThat
(
assertMessage
.
getText
(
"Table stop delimiter assertion error: "
),
actual
.
getTableQuoteCharacter
().
getEndDelimiter
(),
is
(
expected
.
getEndDelimiter
()));
assertThat
(
assertMessage
.
getText
(
"Table start index assertion error: "
),
actual
.
getStartIndex
(),
is
(
expected
.
getStartIndex
()));
assertThat
(
assertMessage
.
getText
(
"Table stop index assertion error: "
),
actual
.
getStopIndex
(),
is
(
expected
.
getStopIndex
()));
}
private
void
assertOwner
(
final
SchemaSegment
actual
,
final
ExpectedTableOwner
expected
)
{
assertThat
(
assertMessage
.
getText
(
"Table owner name assertion error: "
),
actual
.
getName
(),
is
(
expected
.
getName
()));
assertThat
(
assertMessage
.
getText
(
"Table owner start delimiter assertion error: "
),
actual
.
getQuoteCharacter
().
getStartDelimiter
(),
is
(
expected
.
getStartDelimiter
()));
assertThat
(
assertMessage
.
getText
(
"Table owner stop delimiter assertion error: "
),
actual
.
getQuoteCharacter
().
getEndDelimiter
(),
is
(
expected
.
getEndDelimiter
()));
assertThat
(
assertMessage
.
getText
(
"Table owner start index assertion error: "
),
actual
.
getStartIndex
(),
is
(
expected
.
getStartIndex
()));
assertThat
(
assertMessage
.
getText
(
"Table owner stop index assertion error: "
),
actual
.
getStopIndex
(),
is
(
expected
.
getStopIndex
()));
}
}
}
shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/test/java/org/apache/shardingsphere/sql/parser/integrate/jaxb/table/ExpectedTable.java
浏览文件 @
84ef0c10
...
@@ -23,6 +23,7 @@ import lombok.Setter;
...
@@ -23,6 +23,7 @@ import lombok.Setter;
import
javax.xml.bind.annotation.XmlAccessType
;
import
javax.xml.bind.annotation.XmlAccessType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlAttribute
;
import
javax.xml.bind.annotation.XmlAttribute
;
import
javax.xml.bind.annotation.XmlElement
;
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@Getter
@Getter
...
@@ -35,9 +36,18 @@ public final class ExpectedTable {
...
@@ -35,9 +36,18 @@ public final class ExpectedTable {
@XmlAttribute
@XmlAttribute
private
String
alias
;
private
String
alias
;
@XmlAttribute
(
name
=
"start-delimiter"
)
private
String
startDelimiter
=
""
;
@XmlAttribute
(
name
=
"end-delimiter"
)
private
String
endDelimiter
=
""
;
@XmlAttribute
(
name
=
"start-index"
)
@XmlAttribute
(
name
=
"start-index"
)
private
int
startIndex
;
private
int
startIndex
;
@XmlAttribute
(
name
=
"stop-index"
)
@XmlAttribute
(
name
=
"stop-index"
)
private
int
stopIndex
;
private
int
stopIndex
;
@XmlElement
private
ExpectedTableOwner
owner
;
}
}
shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/test/java/org/apache/shardingsphere/sql/parser/integrate/jaxb/table/ExpectedTableOwner.java
0 → 100644
浏览文件 @
84ef0c10
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.apache.shardingsphere.sql.parser.integrate.jaxb.table
;
import
lombok.Getter
;
import
lombok.Setter
;
import
javax.xml.bind.annotation.XmlAccessType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlAttribute
;
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@Getter
@Setter
public
final
class
ExpectedTableOwner
{
@XmlAttribute
private
String
name
;
@XmlAttribute
(
name
=
"start-delimiter"
)
private
String
startDelimiter
=
""
;
@XmlAttribute
(
name
=
"end-delimiter"
)
private
String
endDelimiter
=
""
;
@XmlAttribute
(
name
=
"start-index"
)
private
int
startIndex
;
@XmlAttribute
(
name
=
"stop-index"
)
private
int
stopIndex
;
}
shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/test/resources/sql/dal/show.xml
浏览文件 @
84ef0c10
...
@@ -34,13 +34,15 @@
...
@@ -34,13 +34,15 @@
<parser-result
sql-case-id=
"show_index_with_keys_with_database_and_table"
>
<parser-result
sql-case-id=
"show_index_with_keys_with_database_and_table"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"15"
stop-index=
"33"
/>
<table
name=
"t_order"
start-index=
"15"
stop-index=
"33"
>
<owner
name=
"sharding_db"
start-index=
"15"
stop-index=
"25"
/>
</table>
</tables>
</tables>
</parser-result>
</parser-result>
<parser-result
sql-case-id=
"show_index_with_table_back_quotes"
>
<parser-result
sql-case-id=
"show_index_with_table_back_quotes"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"18"
stop-index=
"26"
/>
<table
name=
"t_order"
start-
delimiter=
"`"
end-delimiter=
"`"
start-
index=
"18"
stop-index=
"26"
/>
</tables>
</tables>
<schemas>
<schemas>
<schema
name=
"sharding_db"
/>
<schema
name=
"sharding_db"
/>
...
@@ -58,7 +60,9 @@
...
@@ -58,7 +60,9 @@
<parser-result
sql-case-id=
"show_index_with_back_quotes"
>
<parser-result
sql-case-id=
"show_index_with_back_quotes"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"15"
stop-index=
"37"
/>
<table
name=
"t_order"
start-delimiter=
"`"
end-delimiter=
"`"
start-index=
"15"
stop-index=
"37"
>
<owner
name=
"sharding_db"
start-delimiter=
"`"
end-delimiter=
"`"
start-index=
"15"
stop-index=
"27"
/>
</table>
</tables>
</tables>
</parser-result>
</parser-result>
...
...
shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/test/resources/sql/dcl/grant_user.xml
浏览文件 @
84ef0c10
...
@@ -42,7 +42,9 @@
...
@@ -42,7 +42,9 @@
<parser-result
sql-case-id=
"grant_user_on_db_and_table"
>
<parser-result
sql-case-id=
"grant_user_on_db_and_table"
>
<tables>
<tables>
<!-- TODO should be 25, because table name should start from real table name, not start from schema name. Need change ID definition of g4 -->
<!-- TODO should be 25, because table name should start from real table name, not start from schema name. Need change ID definition of g4 -->
<table
name=
"t_order"
start-index=
"13"
stop-index=
"31"
/>
<table
name=
"t_order"
start-index=
"13"
stop-index=
"31"
>
<owner
name=
"sharding_db"
start-index=
"13"
stop-index=
"23"
/>
</table>
</tables>
</tables>
</parser-result>
</parser-result>
...
@@ -56,7 +58,9 @@
...
@@ -56,7 +58,9 @@
<parser-result
sql-case-id=
"grant_select_column"
>
<parser-result
sql-case-id=
"grant_select_column"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"27"
stop-index=
"38"
/>
<table
name=
"t_order"
start-index=
"27"
stop-index=
"38"
>
<owner
name=
"ds_0"
start-index=
"27"
stop-index=
"30"
/>
</table>
</tables>
</tables>
</parser-result>
</parser-result>
...
@@ -67,7 +71,9 @@
...
@@ -67,7 +71,9 @@
<parser-result
sql-case-id=
"grant_all_on_table"
>
<parser-result
sql-case-id=
"grant_all_on_table"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"24"
stop-index=
"35"
/>
<table
name=
"t_order"
start-index=
"24"
stop-index=
"35"
>
<owner
name=
"ds_0"
start-index=
"24"
stop-index=
"27"
/>
</table>
</tables>
</tables>
</parser-result>
</parser-result>
...
@@ -80,31 +86,41 @@
...
@@ -80,31 +86,41 @@
<parser-result
sql-case-id=
"grant_object_privilege"
>
<parser-result
sql-case-id=
"grant_object_privilege"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"16"
stop-index=
"27"
/>
<table
name=
"t_order"
start-index=
"16"
stop-index=
"27"
>
<owner
name=
"ds_0"
start-index=
"16"
stop-index=
"19"
/>
</table>
</tables>
</tables>
</parser-result>
</parser-result>
<parser-result
sql-case-id=
"grant_object_privileges"
>
<parser-result
sql-case-id=
"grant_object_privileges"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"40"
stop-index=
"51"
/>
<table
name=
"t_order"
start-index=
"40"
stop-index=
"51"
>
<owner
name=
"ds_0"
start-index=
"40"
stop-index=
"43"
/>
</table>
</tables>
</tables>
</parser-result>
</parser-result>
<parser-result
sql-case-id=
"grant_all_object_privileges"
>
<parser-result
sql-case-id=
"grant_all_object_privileges"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"24"
stop-index=
"35"
/>
<table
name=
"t_order"
start-index=
"24"
stop-index=
"35"
>
<owner
name=
"ds_0"
start-index=
"24"
stop-index=
"27"
/>
</table>
</tables>
</tables>
</parser-result>
</parser-result>
<parser-result
sql-case-id=
"grant_object_privilege_to_users"
>
<parser-result
sql-case-id=
"grant_object_privilege_to_users"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"16"
stop-index=
"27"
/>
<table
name=
"t_order"
start-index=
"16"
stop-index=
"27"
>
<owner
name=
"ds_0"
start-index=
"16"
stop-index=
"19"
/>
</table>
</tables>
</tables>
</parser-result>
</parser-result>
<parser-result
sql-case-id=
"grant_object_privilege_column"
>
<parser-result
sql-case-id=
"grant_object_privilege_column"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"27"
stop-index=
"38"
/>
<table
name=
"t_order"
start-index=
"27"
stop-index=
"38"
>
<owner
name=
"ds_0"
start-index=
"27"
stop-index=
"30"
/>
</table>
</tables>
</tables>
</parser-result>
</parser-result>
...
@@ -158,7 +174,9 @@
...
@@ -158,7 +174,9 @@
<parser-result
sql-case-id=
"grant_select_column_on_table"
>
<parser-result
sql-case-id=
"grant_select_column_on_table"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"33"
stop-index=
"39"
/>
<table
name=
"t_order"
start-index=
"33"
stop-index=
"39"
>
<owner
name=
"ds_0"
start-index=
"33"
stop-index=
"36"
/>
</table>
</tables>
</tables>
</parser-result>
</parser-result>
...
...
shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/test/resources/sql/dcl/revoke_user.xml
浏览文件 @
84ef0c10
...
@@ -36,7 +36,9 @@
...
@@ -36,7 +36,9 @@
<parser-result
sql-case-id=
"revoke_user_with_hostname_on_db_and_table"
>
<parser-result
sql-case-id=
"revoke_user_with_hostname_on_db_and_table"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"25"
stop-index=
"38"
/>
<table
name=
"t_order"
start-index=
"25"
stop-index=
"38"
>
<owner
name=
"master"
start-index=
"25"
stop-index=
"30"
/>
</table>
</tables>
</tables>
</parser-result>
</parser-result>
...
@@ -44,7 +46,9 @@
...
@@ -44,7 +46,9 @@
<parser-result
sql-case-id=
"revoke_select_column"
>
<parser-result
sql-case-id=
"revoke_select_column"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"28"
stop-index=
"39"
/>
<table
name=
"t_order"
start-index=
"28"
stop-index=
"39"
>
<owner
name=
"ds_0"
start-index=
"28"
stop-index=
"31"
/>
</table>
</tables>
</tables>
</parser-result>
</parser-result>
...
@@ -55,7 +59,9 @@
...
@@ -55,7 +59,9 @@
<parser-result
sql-case-id=
"revoke_all_on_table"
>
<parser-result
sql-case-id=
"revoke_all_on_table"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"25"
stop-index=
"36"
/>
<table
name=
"t_order"
start-index=
"25"
stop-index=
"36"
>
<owner
name=
"ds_0"
start-index=
"25"
stop-index=
"28"
/>
</table>
</tables>
</tables>
</parser-result>
</parser-result>
...
@@ -68,31 +74,41 @@
...
@@ -68,31 +74,41 @@
<parser-result
sql-case-id=
"revoke_object_privilege"
>
<parser-result
sql-case-id=
"revoke_object_privilege"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"17"
stop-index=
"28"
/>
<table
name=
"t_order"
start-index=
"17"
stop-index=
"28"
>
<owner
name=
"ds_0"
start-index=
"17"
stop-index=
"20"
/>
</table>
</tables>
</tables>
</parser-result>
</parser-result>
<parser-result
sql-case-id=
"revoke_object_privileges"
>
<parser-result
sql-case-id=
"revoke_object_privileges"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"41"
stop-index=
"52"
/>
<table
name=
"t_order"
start-index=
"41"
stop-index=
"52"
>
<owner
name=
"ds_0"
start-index=
"41"
stop-index=
"44"
/>
</table>
</tables>
</tables>
</parser-result>
</parser-result>
<parser-result
sql-case-id=
"revoke_all_object_privileges"
>
<parser-result
sql-case-id=
"revoke_all_object_privileges"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"25"
stop-index=
"36"
/>
<table
name=
"t_order"
start-index=
"25"
stop-index=
"36"
>
<owner
name=
"ds_0"
start-index=
"25"
stop-index=
"28"
/>
</table>
</tables>
</tables>
</parser-result>
</parser-result>
<parser-result
sql-case-id=
"revoke_object_privilege_from_users"
>
<parser-result
sql-case-id=
"revoke_object_privilege_from_users"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"17"
stop-index=
"28"
/>
<table
name=
"t_order"
start-index=
"17"
stop-index=
"28"
>
<owner
name=
"ds_0"
start-index=
"17"
stop-index=
"20"
/>
</table>
</tables>
</tables>
</parser-result>
</parser-result>
<parser-result
sql-case-id=
"revoke_object_privilege_column"
>
<parser-result
sql-case-id=
"revoke_object_privilege_column"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"28"
stop-index=
"39"
/>
<table
name=
"t_order"
start-index=
"28"
stop-index=
"39"
>
<owner
name=
"ds_0"
start-index=
"28"
stop-index=
"31"
/>
</table>
</tables>
</tables>
</parser-result>
</parser-result>
...
...
shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/test/resources/sql/ddl/alter.xml
浏览文件 @
84ef0c10
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
<parser-result
sql-case-id=
"alter_table_with_back_quota"
>
<parser-result
sql-case-id=
"alter_table_with_back_quota"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"12"
stop-index=
"20"
/>
<table
name=
"t_order"
start-
delimiter=
"`"
end-delimiter=
"`"
start-
index=
"12"
stop-index=
"20"
/>
</tables>
</tables>
</parser-result>
</parser-result>
...
@@ -308,7 +308,7 @@
...
@@ -308,7 +308,7 @@
<parser-result
sql-case-id=
"alter_table_with_quota"
>
<parser-result
sql-case-id=
"alter_table_with_quota"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"12"
stop-index=
"20"
/>
<table
name=
"t_order"
start-
delimiter=
"""
end-delimiter=
"""
start-
index=
"12"
stop-index=
"20"
/>
</tables>
</tables>
</parser-result>
</parser-result>
...
@@ -407,7 +407,7 @@
...
@@ -407,7 +407,7 @@
<parser-result
sql-case-id=
"alter_table_with_double_quota"
>
<parser-result
sql-case-id=
"alter_table_with_double_quota"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"12"
stop-index=
"20"
/>
<table
name=
"t_order"
start-
delimiter=
"""
end-delimiter=
"""
start-
index=
"12"
stop-index=
"20"
/>
</tables>
</tables>
</parser-result>
</parser-result>
...
@@ -465,7 +465,7 @@
...
@@ -465,7 +465,7 @@
<parser-result
sql-case-id=
"alter_table_with_bracket"
>
<parser-result
sql-case-id=
"alter_table_with_bracket"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"12"
stop-index=
"20"
/>
<table
name=
"t_order"
start-
delimiter=
"["
end-delimiter=
"]"
start-
index=
"12"
stop-index=
"20"
/>
</tables>
</tables>
</parser-result>
</parser-result>
...
@@ -525,7 +525,7 @@
...
@@ -525,7 +525,7 @@
<parser-result
sql-case-id=
"alter_index_with_quota_bracket"
>
<parser-result
sql-case-id=
"alter_index_with_quota_bracket"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"29"
stop-index=
"37"
/>
<table
name=
"t_order"
start-
delimiter=
"["
end-delimiter=
"]"
start-
index=
"29"
stop-index=
"37"
/>
</tables>
</tables>
<tokens>
<tokens>
<index-token
start-index=
"12"
stop-index=
"24"
table-name=
"t_order"
/>
<index-token
start-index=
"12"
stop-index=
"24"
table-name=
"t_order"
/>
...
...
shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/test/resources/sql/ddl/create.xml
浏览文件 @
84ef0c10
...
@@ -85,7 +85,7 @@
...
@@ -85,7 +85,7 @@
<parser-result
sql-case-id=
"create_table_with_back_quota"
>
<parser-result
sql-case-id=
"create_table_with_back_quota"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"13"
stop-index=
"21"
/>
<table
name=
"t_order"
start-
delimiter=
"`"
end-delimiter=
"`"
start-
index=
"13"
stop-index=
"21"
/>
</tables>
</tables>
</parser-result>
</parser-result>
...
@@ -265,7 +265,7 @@
...
@@ -265,7 +265,7 @@
<parser-result
sql-case-id=
"create_index_with_back_quota"
>
<parser-result
sql-case-id=
"create_index_with_back_quota"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"30"
stop-index=
"38"
/>
<table
name=
"t_order"
start-
delimiter=
"`"
end-delimiter=
"`"
start-
index=
"30"
stop-index=
"38"
/>
</tables>
</tables>
<tokens>
<tokens>
<index-token
start-index=
"13"
stop-index=
"25"
table-name=
"t_order"
/>
<index-token
start-index=
"13"
stop-index=
"25"
table-name=
"t_order"
/>
...
@@ -292,7 +292,7 @@
...
@@ -292,7 +292,7 @@
<parser-result
sql-case-id=
"create_table_with_quota"
>
<parser-result
sql-case-id=
"create_table_with_quota"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"13"
stop-index=
"21"
/>
<table
name=
"t_order"
start-
delimiter=
"""
end-delimiter=
"""
start-
index=
"13"
stop-index=
"21"
/>
</tables>
</tables>
</parser-result>
</parser-result>
...
@@ -382,7 +382,7 @@
...
@@ -382,7 +382,7 @@
<parser-result
sql-case-id=
"create_index_with_quota"
>
<parser-result
sql-case-id=
"create_index_with_quota"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"30"
stop-index=
"38"
/>
<table
name=
"t_order"
start-
delimiter=
"""
end-delimiter=
"""
start-
index=
"30"
stop-index=
"38"
/>
</tables>
</tables>
<tokens>
<tokens>
<index-token
start-index=
"13"
stop-index=
"25"
table-name=
"t_order"
/>
<index-token
start-index=
"13"
stop-index=
"25"
table-name=
"t_order"
/>
...
@@ -400,7 +400,7 @@
...
@@ -400,7 +400,7 @@
<parser-result
sql-case-id=
"create_table_with_double_quota"
>
<parser-result
sql-case-id=
"create_table_with_double_quota"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"13"
stop-index=
"21"
/>
<table
name=
"t_order"
start-
delimiter=
"""
end-delimiter=
"""
start-
index=
"13"
stop-index=
"21"
/>
</tables>
</tables>
</parser-result>
</parser-result>
...
@@ -438,7 +438,7 @@
...
@@ -438,7 +438,7 @@
<parser-result
sql-case-id=
"create_index_with_double_quota"
>
<parser-result
sql-case-id=
"create_index_with_double_quota"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"30"
stop-index=
"38"
/>
<table
name=
"t_order"
start-
delimiter=
"""
end-delimiter=
"""
start-
index=
"30"
stop-index=
"38"
/>
</tables>
</tables>
<tokens>
<tokens>
<index-token
start-index=
"13"
stop-index=
"25"
table-name=
"t_order"
/>
<index-token
start-index=
"13"
stop-index=
"25"
table-name=
"t_order"
/>
...
@@ -484,7 +484,7 @@
...
@@ -484,7 +484,7 @@
<parser-result
sql-case-id=
"create_table_with_bracket"
>
<parser-result
sql-case-id=
"create_table_with_bracket"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"13"
stop-index=
"21"
/>
<table
name=
"t_order"
start-
delimiter=
"["
end-delimiter=
"]"
start-
index=
"13"
stop-index=
"21"
/>
</tables>
</tables>
</parser-result>
</parser-result>
...
@@ -548,7 +548,7 @@
...
@@ -548,7 +548,7 @@
<parser-result
sql-case-id=
"create_index_with_bracket"
>
<parser-result
sql-case-id=
"create_index_with_bracket"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"30"
stop-index=
"38"
/>
<table
name=
"t_order"
start-
delimiter=
"["
end-delimiter=
"]"
start-
index=
"30"
stop-index=
"38"
/>
</tables>
</tables>
<tokens>
<tokens>
<index-token
start-index=
"13"
stop-index=
"25"
table-name=
"t_order"
/>
<index-token
start-index=
"13"
stop-index=
"25"
table-name=
"t_order"
/>
...
...
shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/test/resources/sql/ddl/drop.xml
浏览文件 @
84ef0c10
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
<parser-result
sql-case-id=
"drop_table_with_back_quota"
>
<parser-result
sql-case-id=
"drop_table_with_back_quota"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"11"
stop-index=
"19"
/>
<table
name=
"t_order"
start-
delimiter=
"`"
end-delimiter=
"`"
start-
index=
"11"
stop-index=
"19"
/>
</tables>
</tables>
</parser-result>
</parser-result>
...
@@ -116,7 +116,7 @@
...
@@ -116,7 +116,7 @@
<parser-result
sql-case-id=
"drop_index_with_back_quota"
>
<parser-result
sql-case-id=
"drop_index_with_back_quota"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"28"
stop-index=
"36"
/>
<table
name=
"t_order"
start-
delimiter=
"`"
end-delimiter=
"`"
start-
index=
"28"
stop-index=
"36"
/>
</tables>
</tables>
<tokens>
<tokens>
<index-token
start-index=
"11"
stop-index=
"23"
table-name=
"t_order"
/>
<index-token
start-index=
"11"
stop-index=
"23"
table-name=
"t_order"
/>
...
@@ -125,7 +125,7 @@
...
@@ -125,7 +125,7 @@
<parser-result
sql-case-id=
"drop_table_with_quota"
>
<parser-result
sql-case-id=
"drop_table_with_quota"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"11"
stop-index=
"19"
/>
<table
name=
"t_order"
start-
delimiter=
"""
end-delimiter=
"""
start-
index=
"11"
stop-index=
"19"
/>
</tables>
</tables>
</parser-result>
</parser-result>
...
@@ -137,11 +137,11 @@
...
@@ -137,11 +137,11 @@
<parser-result
sql-case-id=
"drop_table_with_double_quota"
>
<parser-result
sql-case-id=
"drop_table_with_double_quota"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"11"
stop-index=
"19"
/>
<table
name=
"t_order"
start-
delimiter=
"""
end-delimiter=
"""
start-
index=
"11"
stop-index=
"19"
/>
</tables>
</tables>
</parser-result>
</parser-result>
<parser-result
sql-case-id=
"drop_index_with_double_quota"
>
<parser-result
sql-case-id=
"drop_index_with_double_quota"
>
<tokens>
<tokens>
<index-token
start-index=
"11"
stop-index=
"23"
table-name=
"t_order"
/>
<index-token
start-index=
"11"
stop-index=
"23"
table-name=
"t_order"
/>
</tokens>
</tokens>
...
@@ -155,13 +155,13 @@
...
@@ -155,13 +155,13 @@
<parser-result
sql-case-id=
"drop_table_with_bracket"
>
<parser-result
sql-case-id=
"drop_table_with_bracket"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"11"
stop-index=
"19"
/>
<table
name=
"t_order"
start-
delimiter=
"["
end-delimiter=
"]"
start-
index=
"11"
stop-index=
"19"
/>
</tables>
</tables>
</parser-result>
</parser-result>
<parser-result
sql-case-id=
"drop_index_with_bracket"
>
<parser-result
sql-case-id=
"drop_index_with_bracket"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"28"
stop-index=
"36"
/>
<table
name=
"t_order"
start-
delimiter=
"["
end-delimiter=
"]"
start-
index=
"28"
stop-index=
"36"
/>
</tables>
</tables>
<tokens>
<tokens>
<index-token
start-index=
"11"
stop-index=
"23"
table-name=
"t_order"
/>
<index-token
start-index=
"11"
stop-index=
"23"
table-name=
"t_order"
/>
...
...
shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/test/resources/sql/ddl/truncate.xml
浏览文件 @
84ef0c10
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
<parser-result
sql-case-id=
"truncate_table_with_back_quota"
>
<parser-result
sql-case-id=
"truncate_table_with_back_quota"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"15"
stop-index=
"23"
/>
<table
name=
"t_order"
start-
delimiter=
"`"
end-delimiter=
"`"
start-
index=
"15"
stop-index=
"23"
/>
</tables>
</tables>
</parser-result>
</parser-result>
...
@@ -49,13 +49,13 @@
...
@@ -49,13 +49,13 @@
<parser-result
sql-case-id=
"truncate_table_with_quota"
>
<parser-result
sql-case-id=
"truncate_table_with_quota"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"15"
stop-index=
"23"
/>
<table
name=
"t_order"
start-
delimiter=
"""
end-delimiter=
"""
start-
index=
"15"
stop-index=
"23"
/>
</tables>
</tables>
</parser-result>
</parser-result>
<parser-result
sql-case-id=
"truncate_table_with_double_quota"
>
<parser-result
sql-case-id=
"truncate_table_with_double_quota"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"15"
stop-index=
"23"
/>
<table
name=
"t_order"
start-
delimiter=
"""
end-delimiter=
"""
start-
index=
"15"
stop-index=
"23"
/>
</tables>
</tables>
</parser-result>
</parser-result>
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
<parser-result
sql-case-id=
"truncate_table_with_bracket"
>
<parser-result
sql-case-id=
"truncate_table_with_bracket"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"15"
stop-index=
"23"
/>
<table
name=
"t_order"
start-
delimiter=
"["
end-delimiter=
"]"
start-
index=
"15"
stop-index=
"23"
/>
</tables>
</tables>
</parser-result>
</parser-result>
</parser-result-sets>
</parser-result-sets>
shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/test/resources/sql/dml/delete.xml
浏览文件 @
84ef0c10
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
<parser-result
sql-case-id=
"delete_with_special_character_without_sharding_value"
>
<parser-result
sql-case-id=
"delete_with_special_character_without_sharding_value"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"12"
stop-index=
"20"
/>
<table
name=
"t_order"
start-
delimiter=
"`"
end-delimiter=
"`"
start-
index=
"12"
stop-index=
"20"
/>
</tables>
</tables>
<encrypt-conditions>
<encrypt-conditions>
<condition
column-name=
"status"
table-name=
"t_order"
operator=
"EQUAL"
>
<condition
column-name=
"status"
table-name=
"t_order"
operator=
"EQUAL"
>
...
...
shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/test/resources/sql/dml/insert.xml
浏览文件 @
84ef0c10
...
@@ -134,7 +134,7 @@
...
@@ -134,7 +134,7 @@
<parser-result
sql-case-id=
"insert_with_special_characters"
>
<parser-result
sql-case-id=
"insert_with_special_characters"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"12"
stop-index=
"20"
/>
<table
name=
"t_order"
start-
delimiter=
"`"
end-delimiter=
"`"
start-
index=
"12"
stop-index=
"20"
/>
</tables>
</tables>
<insert-columns-and-values
column-names=
"order_id,user_id,status"
>
<insert-columns-and-values
column-names=
"order_id,user_id,status"
>
<insert-values>
<insert-values>
...
...
shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/test/resources/sql/dml/select.xml
浏览文件 @
84ef0c10
...
@@ -416,7 +416,7 @@
...
@@ -416,7 +416,7 @@
<tables>
<tables>
<table
name=
"t_order"
alias=
"o"
start-index=
"16"
stop-index=
"22"
/>
<table
name=
"t_order"
alias=
"o"
start-index=
"16"
stop-index=
"22"
/>
<table
name=
"t_order_item"
alias=
"i"
start-index=
"31"
stop-index=
"42"
/>
<table
name=
"t_order_item"
alias=
"i"
start-index=
"31"
stop-index=
"42"
/>
<table
name=
"select"
alias=
"c"
start-index=
"104"
stop-index=
"111"
/>
<table
name=
"select"
alias=
"c"
start-
delimiter=
"`"
end-delimiter=
"`"
start-
index=
"104"
stop-index=
"111"
/>
</tables>
</tables>
<sharding-conditions>
<sharding-conditions>
<and-condition>
<and-condition>
...
@@ -451,7 +451,7 @@
...
@@ -451,7 +451,7 @@
<tables>
<tables>
<table
name=
"t_order"
alias=
"o"
start-index=
"16"
stop-index=
"22"
/>
<table
name=
"t_order"
alias=
"o"
start-index=
"16"
stop-index=
"22"
/>
<table
name=
"t_order_item"
alias=
"i"
start-index=
"31"
stop-index=
"42"
/>
<table
name=
"t_order_item"
alias=
"i"
start-index=
"31"
stop-index=
"42"
/>
<table
name=
"select"
alias=
"c"
start-index=
"104"
stop-index=
"111"
/>
<table
name=
"select"
alias=
"c"
start-
delimiter=
"""
end-delimiter=
"""
start-
index=
"104"
stop-index=
"111"
/>
</tables>
</tables>
<sharding-conditions>
<sharding-conditions>
<and-condition>
<and-condition>
...
@@ -481,7 +481,7 @@
...
@@ -481,7 +481,7 @@
<tables>
<tables>
<table
name=
"t_order"
alias=
"o"
start-index=
"16"
stop-index=
"22"
/>
<table
name=
"t_order"
alias=
"o"
start-index=
"16"
stop-index=
"22"
/>
<table
name=
"t_order_item"
alias=
"i"
start-index=
"31"
stop-index=
"42"
/>
<table
name=
"t_order_item"
alias=
"i"
start-index=
"31"
stop-index=
"42"
/>
<table
name=
"select"
alias=
"c"
start-index=
"104"
stop-index=
"111"
/>
<table
name=
"select"
alias=
"c"
start-
delimiter=
"["
end-delimiter=
"]"
start-
index=
"104"
stop-index=
"111"
/>
</tables>
</tables>
<sharding-conditions>
<sharding-conditions>
<and-condition>
<and-condition>
...
@@ -610,7 +610,7 @@
...
@@ -610,7 +610,7 @@
<parser-result
sql-case-id=
"select_with_double_quotes"
parameters=
"1"
>
<parser-result
sql-case-id=
"select_with_double_quotes"
parameters=
"1"
>
<tables>
<tables>
<table
name=
"t_order_item"
start-index=
"14"
stop-index=
"27"
/>
<table
name=
"t_order_item"
start-
delimiter=
"""
end-delimiter=
"""
start-
index=
"14"
stop-index=
"27"
/>
</tables>
</tables>
<order-by-columns>
<order-by-columns>
<order-by-column
name=
"item_id"
order-direction=
"ASC"
/>
<order-by-column
name=
"item_id"
order-direction=
"ASC"
/>
...
@@ -825,7 +825,9 @@
...
@@ -825,7 +825,9 @@
<parser-result
sql-case-id=
"select_with_schema"
>
<parser-result
sql-case-id=
"select_with_schema"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"14"
stop-index=
"24"
/>
<table
name=
"t_order"
start-index=
"14"
stop-index=
"24"
>
<owner
name=
"db1"
start-index=
"14"
stop-index=
"16"
/>
</table>
</tables>
</tables>
<select-items
start-index=
"7"
stop-index=
"7"
>
<select-items
start-index=
"7"
stop-index=
"7"
>
<shorthand-select-items>
<shorthand-select-items>
...
...
shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/test/resources/sql/dml/select_expression.xml
浏览文件 @
84ef0c10
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
<parser-result
sql-case-id=
"select_with_date_function"
>
<parser-result
sql-case-id=
"select_with_date_function"
>
<tables>
<tables>
<table
name=
"t_order_item"
alias=
"i"
start-index=
"51"
stop-index=
"64"
/>
<table
name=
"t_order_item"
alias=
"i"
start-
delimiter=
"`"
end-delimiter=
"`"
start-
index=
"51"
stop-index=
"64"
/>
</tables>
</tables>
<order-by-columns>
<order-by-columns>
<order-by-column
name=
"DATE(i.creation_date)"
order-direction=
"DESC"
/>
<order-by-column
name=
"DATE(i.creation_date)"
order-direction=
"DESC"
/>
...
...
shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/test/resources/sql/dml/select_group_by.xml
浏览文件 @
84ef0c10
...
@@ -229,7 +229,7 @@
...
@@ -229,7 +229,7 @@
<parser-result
sql-case-id=
"select_group_by_with_date_function"
parameters=
"1000, 1100"
>
<parser-result
sql-case-id=
"select_group_by_with_date_function"
parameters=
"1000, 1100"
>
<tables>
<tables>
<table
name=
"t_order_item"
start-index=
"91"
stop-index=
"104"
/>
<table
name=
"t_order_item"
start-
delimiter=
"`"
end-delimiter=
"`"
start-
index=
"91"
stop-index=
"104"
/>
</tables>
</tables>
<sharding-conditions>
<sharding-conditions>
<and-condition>
<and-condition>
...
...
shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/test/resources/sql/dml/select_pagination.xml
浏览文件 @
84ef0c10
...
@@ -79,8 +79,8 @@
...
@@ -79,8 +79,8 @@
<parser-result
sql-case-id=
"select_pagination_with_limit_with_back_quotes"
parameters=
"1, 2, 9, 10, 5, 3"
>
<parser-result
sql-case-id=
"select_pagination_with_limit_with_back_quotes"
parameters=
"1, 2, 9, 10, 5, 3"
>
<tables>
<tables>
<table
name=
"t_order"
alias=
"o"
start-index=
"16"
stop-index=
"24"
/>
<table
name=
"t_order"
alias=
"o"
start-
delimiter=
"`"
end-delimiter=
"`"
start-
index=
"16"
stop-index=
"24"
/>
<table
name=
"t_order_item"
alias=
"i"
start-index=
"33"
stop-index=
"46"
/>
<table
name=
"t_order_item"
alias=
"i"
start-
delimiter=
"`"
end-delimiter=
"`"
start-
index=
"33"
stop-index=
"46"
/>
</tables>
</tables>
<sharding-conditions>
<sharding-conditions>
<and-condition>
<and-condition>
...
@@ -110,8 +110,8 @@
...
@@ -110,8 +110,8 @@
<parser-result
sql-case-id=
"select_pagination_with_limit_and_offset_keyword"
parameters=
"1, 2, 9, 10, 3, 5"
>
<parser-result
sql-case-id=
"select_pagination_with_limit_and_offset_keyword"
parameters=
"1, 2, 9, 10, 3, 5"
>
<tables>
<tables>
<table
name=
"t_order"
alias=
"o"
start-index=
"16"
stop-index=
"24"
/>
<table
name=
"t_order"
alias=
"o"
start-
delimiter=
"`"
end-delimiter=
"`"
start-
index=
"16"
stop-index=
"24"
/>
<table
name=
"t_order_item"
alias=
"i"
start-index=
"33"
stop-index=
"46"
/>
<table
name=
"t_order_item"
alias=
"i"
start-
delimiter=
"`"
end-delimiter=
"`"
start-
index=
"33"
stop-index=
"46"
/>
</tables>
</tables>
<sharding-conditions>
<sharding-conditions>
<and-condition>
<and-condition>
...
...
shardingsphere-sql-parser/shardingsphere-sql-parser-test/src/test/resources/sql/dml/update.xml
浏览文件 @
84ef0c10
...
@@ -89,7 +89,7 @@
...
@@ -89,7 +89,7 @@
<parser-result
sql-case-id=
"update_with_special_character"
parameters=
"'update', 1, 1"
>
<parser-result
sql-case-id=
"update_with_special_character"
parameters=
"'update', 1, 1"
>
<tables>
<tables>
<table
name=
"t_order"
start-index=
"7"
stop-index=
"15"
/>
<table
name=
"t_order"
start-
delimiter=
"`"
end-delimiter=
"`"
start-
index=
"7"
stop-index=
"15"
/>
</tables>
</tables>
<sharding-conditions>
<sharding-conditions>
<and-condition>
<and-condition>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录