From 8fcbcb0893588de8abc94b2c154779677bfccc1b Mon Sep 17 00:00:00 2001 From: haocao Date: Fri, 28 Jul 2017 18:21:54 +0800 Subject: [PATCH] New integrate sql test framework 16th version. --- .../dataset/dbtbl/expect/delete/dbtbl.xml | 12 ++++++++++ .../expect/select/SelectIteratorSql_0.xml | 4 ++++ .../expect/select/SelectIteratorSql_1.xml | 4 ++++ .../expect/select/SelectIteratorSql_2.xml | 4 ++++ .../expect/select/SelectIteratorSql_3.xml | 4 ++++ .../SelectPagingWithOffsetAndRowCountSql.xml | 4 ++++ .../select/SelectPagingWithRowCountSql.xml | 4 ++++ ...electSubqueryMultiTableWithParentheses.xml | 6 +++++ ...lectSubquerySingleTableWithParentheses.xml | 4 ++++ .../expect/select/SelectWithBindingTable.xml | 22 +++++++++++++++++++ .../SelectPagingWithOffsetAndRowCountSql.xml | 4 ++++ .../mysql/SelectPagingWithRowCountSql.xml | 4 ++++ .../SelectPagingWithOffsetAndRowCountSql.xml | 4 ++++ .../SelectPagingWithOffsetAndRowCountSql.xml | 5 +++++ .../postgresql/SelectPagingWithOffsetSql.xml | 4 ++++ .../SelectPagingWithRowCountSql.xml | 4 ++++ .../SelectPagingWithOffsetAndRowCountSql.xml | 4 ++++ .../sqlserver/SelectPagingWithRowCountSql.xml | 4 ++++ .../SelectGroupByWithBindingTable.xml | 4 ++++ .../SelectGroupByWithoutGroupedColumn.xml | 4 ++++ 20 files changed, 109 insertions(+) create mode 100644 sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/delete/dbtbl.xml create mode 100644 sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectIteratorSql_0.xml create mode 100644 sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectIteratorSql_1.xml create mode 100644 sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectIteratorSql_2.xml create mode 100644 sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectIteratorSql_3.xml create mode 100644 sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectPagingWithOffsetAndRowCountSql.xml create mode 100644 sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectPagingWithRowCountSql.xml create mode 100644 sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectSubqueryMultiTableWithParentheses.xml create mode 100644 sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectSubquerySingleTableWithParentheses.xml create mode 100644 sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectWithBindingTable.xml create mode 100644 sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/mysql/SelectPagingWithOffsetAndRowCountSql.xml create mode 100644 sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/mysql/SelectPagingWithRowCountSql.xml create mode 100644 sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/oracle/SelectPagingWithOffsetAndRowCountSql.xml create mode 100644 sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/postgresql/SelectPagingWithOffsetAndRowCountSql.xml create mode 100644 sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/postgresql/SelectPagingWithOffsetSql.xml create mode 100644 sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/postgresql/SelectPagingWithRowCountSql.xml create mode 100644 sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/sqlserver/SelectPagingWithOffsetAndRowCountSql.xml create mode 100644 sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/sqlserver/SelectPagingWithRowCountSql.xml create mode 100644 sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select_group_by/SelectGroupByWithBindingTable.xml create mode 100644 sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select_group_by/SelectGroupByWithoutGroupedColumn.xml diff --git a/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/delete/dbtbl.xml b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/delete/dbtbl.xml new file mode 100644 index 0000000000..82a36eff2e --- /dev/null +++ b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/delete/dbtbl.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectIteratorSql_0.xml b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectIteratorSql_0.xml new file mode 100644 index 0000000000..cb4a61feb4 --- /dev/null +++ b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectIteratorSql_0.xml @@ -0,0 +1,4 @@ + + + + diff --git a/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectIteratorSql_1.xml b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectIteratorSql_1.xml new file mode 100644 index 0000000000..c0037d0f83 --- /dev/null +++ b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectIteratorSql_1.xml @@ -0,0 +1,4 @@ + + + + diff --git a/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectIteratorSql_2.xml b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectIteratorSql_2.xml new file mode 100644 index 0000000000..3c62824f7c --- /dev/null +++ b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectIteratorSql_2.xml @@ -0,0 +1,4 @@ + + + + diff --git a/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectIteratorSql_3.xml b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectIteratorSql_3.xml new file mode 100644 index 0000000000..647b1a2a51 --- /dev/null +++ b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectIteratorSql_3.xml @@ -0,0 +1,4 @@ + + + + diff --git a/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectPagingWithOffsetAndRowCountSql.xml b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectPagingWithOffsetAndRowCountSql.xml new file mode 100644 index 0000000000..25b831e2b5 --- /dev/null +++ b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectPagingWithOffsetAndRowCountSql.xml @@ -0,0 +1,4 @@ + + + + diff --git a/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectPagingWithRowCountSql.xml b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectPagingWithRowCountSql.xml new file mode 100644 index 0000000000..af82bb7151 --- /dev/null +++ b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectPagingWithRowCountSql.xml @@ -0,0 +1,4 @@ + + + + diff --git a/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectSubqueryMultiTableWithParentheses.xml b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectSubqueryMultiTableWithParentheses.xml new file mode 100644 index 0000000000..dbe0cf83e7 --- /dev/null +++ b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectSubqueryMultiTableWithParentheses.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectSubquerySingleTableWithParentheses.xml b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectSubquerySingleTableWithParentheses.xml new file mode 100644 index 0000000000..adb68594bd --- /dev/null +++ b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectSubquerySingleTableWithParentheses.xml @@ -0,0 +1,4 @@ + + + + diff --git a/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectWithBindingTable.xml b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectWithBindingTable.xml new file mode 100644 index 0000000000..fc40aca771 --- /dev/null +++ b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/SelectWithBindingTable.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/mysql/SelectPagingWithOffsetAndRowCountSql.xml b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/mysql/SelectPagingWithOffsetAndRowCountSql.xml new file mode 100644 index 0000000000..6995c02aa8 --- /dev/null +++ b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/mysql/SelectPagingWithOffsetAndRowCountSql.xml @@ -0,0 +1,4 @@ + + + + diff --git a/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/mysql/SelectPagingWithRowCountSql.xml b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/mysql/SelectPagingWithRowCountSql.xml new file mode 100644 index 0000000000..87223f8fbd --- /dev/null +++ b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/mysql/SelectPagingWithRowCountSql.xml @@ -0,0 +1,4 @@ + + + + diff --git a/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/oracle/SelectPagingWithOffsetAndRowCountSql.xml b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/oracle/SelectPagingWithOffsetAndRowCountSql.xml new file mode 100644 index 0000000000..65789429c4 --- /dev/null +++ b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/oracle/SelectPagingWithOffsetAndRowCountSql.xml @@ -0,0 +1,4 @@ + + + + diff --git a/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/postgresql/SelectPagingWithOffsetAndRowCountSql.xml b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/postgresql/SelectPagingWithOffsetAndRowCountSql.xml new file mode 100644 index 0000000000..cf31e24f46 --- /dev/null +++ b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/postgresql/SelectPagingWithOffsetAndRowCountSql.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/postgresql/SelectPagingWithOffsetSql.xml b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/postgresql/SelectPagingWithOffsetSql.xml new file mode 100644 index 0000000000..878cb7a54c --- /dev/null +++ b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/postgresql/SelectPagingWithOffsetSql.xml @@ -0,0 +1,4 @@ + + + + diff --git a/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/postgresql/SelectPagingWithRowCountSql.xml b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/postgresql/SelectPagingWithRowCountSql.xml new file mode 100644 index 0000000000..af82bb7151 --- /dev/null +++ b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/postgresql/SelectPagingWithRowCountSql.xml @@ -0,0 +1,4 @@ + + + + diff --git a/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/sqlserver/SelectPagingWithOffsetAndRowCountSql.xml b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/sqlserver/SelectPagingWithOffsetAndRowCountSql.xml new file mode 100644 index 0000000000..d0144262d1 --- /dev/null +++ b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/sqlserver/SelectPagingWithOffsetAndRowCountSql.xml @@ -0,0 +1,4 @@ + + + + diff --git a/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/sqlserver/SelectPagingWithRowCountSql.xml b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/sqlserver/SelectPagingWithRowCountSql.xml new file mode 100644 index 0000000000..a3b618a0d1 --- /dev/null +++ b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select/sqlserver/SelectPagingWithRowCountSql.xml @@ -0,0 +1,4 @@ + + + + diff --git a/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select_group_by/SelectGroupByWithBindingTable.xml b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select_group_by/SelectGroupByWithBindingTable.xml new file mode 100644 index 0000000000..3d72965acc --- /dev/null +++ b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select_group_by/SelectGroupByWithBindingTable.xml @@ -0,0 +1,4 @@ + + + + diff --git a/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select_group_by/SelectGroupByWithoutGroupedColumn.xml b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select_group_by/SelectGroupByWithoutGroupedColumn.xml new file mode 100644 index 0000000000..2ace6b839c --- /dev/null +++ b/sharding-jdbc-core/src/test/resources/integrate/dataset/dbtbl/expect/select_group_by/SelectGroupByWithoutGroupedColumn.xml @@ -0,0 +1,4 @@ + + + + -- GitLab