Skip to content

Commit

Permalink
Merge pull request #946 from cherrylzhao/sharding-proxy-xa-transaction
Browse files Browse the repository at this point in the history
Sharding proxy xa transaction
  • Loading branch information
cherrylzhao authored Jun 20, 2018
2 parents b1c5b5c + 21bc870 commit e7a1d4f
Show file tree
Hide file tree
Showing 437 changed files with 12,189 additions and 6,157 deletions.
4 changes: 2 additions & 2 deletions sharding-core/src/test/resources/parser/alter.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<parser-result-sets>
<parser-result sql-case-id="assertAlterTable">
<parser-result sql-case-id="alter_table">
<tables>
<table name="t_log" />
</tables>
Expand All @@ -9,7 +9,7 @@
</tokens>
</parser-result>

<parser-result sql-case-id="assertAlterTableIfExistAndOnly">
<parser-result sql-case-id="alter_table_if_exists_only">
<tables>
<table name="t_log" />
</tables>
Expand Down
16 changes: 8 additions & 8 deletions sharding-core/src/test/resources/parser/create.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<parser-result-sets>
<parser-result sql-case-id="assertCreateTable">
<parser-result sql-case-id="create_table">
<tables>
<table name="t_log" />
</tables>
Expand All @@ -9,7 +9,7 @@
</tokens>
</parser-result>

<parser-result sql-case-id="assertCreateTableIfNotExist">
<parser-result sql-case-id="create_table_if_not_exists">
<tables>
<table name="t_log" />
</tables>
Expand All @@ -18,7 +18,7 @@
</tokens>
</parser-result>

<parser-result sql-case-id="assertCreateTemporaryTable">
<parser-result sql-case-id="create_temporary_table_if_not_exists">
<tables>
<table name="t_temp_log" />
</tables>
Expand All @@ -27,7 +27,7 @@
</tokens>
</parser-result>

<parser-result sql-case-id="assertCreateGlobalTemporaryTable">
<parser-result sql-case-id="create_global_temporary_table">
<tables>
<table name="t_temp_log" />
</tables>
Expand All @@ -36,7 +36,7 @@
</tokens>
</parser-result>

<parser-result sql-case-id="assertCreateLocalTempTable">
<parser-result sql-case-id="create_local_temp_table">
<tables>
<table name="t_temp_log" />
</tables>
Expand All @@ -45,7 +45,7 @@
</tokens>
</parser-result>

<parser-result sql-case-id="assertCreateUnloggedTable">
<parser-result sql-case-id="create_unlogged_table">
<tables>
<table name="t_log" />
</tables>
Expand All @@ -54,7 +54,7 @@
</tokens>
</parser-result>

<parser-result sql-case-id="assertCreateIndex">
<parser-result sql-case-id="create_index">
<tables>
<table name="t_log" />
</tables>
Expand All @@ -64,7 +64,7 @@
</tokens>
</parser-result>

<parser-result sql-case-id="assertCreateUniqueIndex">
<parser-result sql-case-id="create_unique_index">
<tables>
<table name="t_log" />
</tables>
Expand Down
4 changes: 2 additions & 2 deletions sharding-core/src/test/resources/parser/delete.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<parser-result-sets>
<parser-result sql-case-id="assertDeleteWithShardingValue" parameters="1000, 1001, 'init'">
<parser-result sql-case-id="delete_with_sharding_value" parameters="1000, 1001, 'init'">
<tables>
<table name="t_order"/>
</tables>
Expand All @@ -19,7 +19,7 @@
</or-condition>
</parser-result>

<parser-result sql-case-id="assertDeleteWithoutShardingValue" parameters="'init'">
<parser-result sql-case-id="delete_without_sharding_value" parameters="'init'">
<tables>
<table name="t_order" />
</tables>
Expand Down
18 changes: 9 additions & 9 deletions sharding-core/src/test/resources/parser/drop.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<parser-result-sets>
<parser-result sql-case-id="assertDropTable">
<parser-result sql-case-id="drop_table">
<tables>
<table name="t_log" />
</tables>
Expand All @@ -9,7 +9,7 @@
</tokens>
</parser-result>

<parser-result sql-case-id="assertDropTableIfExists">
<parser-result sql-case-id="drop_table_if_exists">
<tables>
<table name="t_log" />
</tables>
Expand All @@ -18,7 +18,7 @@
</tokens>
</parser-result>

<parser-result sql-case-id="assertDropTemporaryTable">
<parser-result sql-case-id="drop_temporary_table_if_exists">
<tables>
<table name="t_temp_log" />
</tables>
Expand All @@ -27,7 +27,7 @@
</tokens>
</parser-result>

<parser-result sql-case-id="assertDropTableRestrict">
<parser-result sql-case-id="drop_table_restrict">
<tables>
<table name="t_log" />
</tables>
Expand All @@ -36,7 +36,7 @@
</tokens>
</parser-result>

<parser-result sql-case-id="assertDropTableCascade">
<parser-result sql-case-id="drop_table_cascade">
<tables>
<table name="t_log" />
</tables>
Expand All @@ -45,7 +45,7 @@
</tokens>
</parser-result>

<parser-result sql-case-id="assertDropTableCascadeConstraintsAndPurge">
<parser-result sql-case-id="drop_table_cascade_constraints_and_purge">
<tables>
<table name="t_log" />
</tables>
Expand All @@ -54,7 +54,7 @@
</tokens>
</parser-result>

<parser-result sql-case-id="assertDropIndex">
<parser-result sql-case-id="drop_index">
<tables>
<table name="t_log" />
</tables>
Expand All @@ -64,13 +64,13 @@
</tokens>
</parser-result>

<parser-result sql-case-id="assertDropIndexWithoutOn">
<parser-result sql-case-id="drop_index_without_on">
<tokens>
<index-token begin-position="11" original-literals="t_log_index" table-name="" />
</tokens>
</parser-result>

<parser-result sql-case-id="assertDropIndexIfExists">
<parser-result sql-case-id="drop_index_if_exists">
<tokens>
<index-token begin-position="21" original-literals="t_order_index" table-name="" />
</tokens>
Expand Down
Loading

0 comments on commit e7a1d4f

Please sign in to comment.