Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

Commit

Permalink
rename test db
Browse files Browse the repository at this point in the history
  • Loading branch information
glorv committed Oct 31, 2020
1 parent e9143ac commit 150720b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions tests/column_permutation/data/perm-schema-create.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CREATE DATABASE `perm` IF NOT EXISTS;
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ PARTITION BY RANGE COLUMNS(batch_date) (
PARTITION `P20200324` VALUES LESS THAN ("2020-03-05 00:00:00"),
PARTITION `P20200424` VALUES LESS THAN ("2020-04-05 00:00:00"),
PARTITION `P20200524` VALUES LESS THAN ("2020-05-05 00:00:00"),
PARTITION `P_MAXVALUE` VALUES LESS THAN ("MAXVALUE")
);
PARTITION `P_MAXVALUE` VALUES LESS THAN MAXVALUE
);
1 change: 0 additions & 1 deletion tests/column_permutation/data/test-schema-create.sql

This file was deleted.

6 changes: 3 additions & 3 deletions tests/column_permutation/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ for BACKEND in local importer tidb; do
if [ "$BACKEND" = 'local' ]; then
check_cluster_version 4 0 0 'local backend' || continue
fi
run_sql 'DROP DATABASE IF EXISTS test'
run_sql 'DROP DATABASE IF EXISTS perm'

run_lightning --backend $BACKEND

run_sql 'select count(*) from test.test_perm;'
run_sql 'select count(*) from perm.test_perm;'
check_contains "count(*): 5"

run_sql "SELECT fund_seq_no, region_code, credit_code FROM test.test_perm WHERE contract_no = '2020061000019011020164030597';"
run_sql "SELECT fund_seq_no, region_code, credit_code FROM perm.test_perm WHERE contract_no = '2020061000019011020164030597';"
check_contains "fund_seq_no: 202006100001901102016403059520200627"
check_contains "region_code: 000002"
check_contains "credit_code: 33"
Expand Down

0 comments on commit 150720b

Please sign in to comment.