Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lightning: fix cluster index #39010

Merged
merged 13 commits into from
Nov 10, 2022
2 changes: 2 additions & 0 deletions br/tests/_utils/run_sql
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ set -euo pipefail
SQL="$1"
shift

prepare="set global tidb_enable_clustered_index = 'int_only';"
echo "[$(date)] Executing SQL: $SQL" > "$TEST_DIR/sql_res.$TEST_NAME.txt"
mysql -uroot -h127.0.0.1 -P4000 --default-character-set utf8 -E -e "${prepare}" | tee -a "$OUT_DIR/sql_res.$TEST_NAME.txt"
mysql -uroot -h127.0.0.1 -P4000 \
--ssl-ca="$TEST_DIR/certs/ca.pem" \
--ssl-cert="$TEST_DIR/certs/curl.pem" \
Expand Down
2 changes: 2 additions & 0 deletions br/tests/_utils/run_sql_file
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ set -euo pipefail
SQL_FILE="$1"
shift

prepare="set global tidb_enable_clustered_index = 'int_only';"
echo "[$(date)] Executing SQL_FILE: $SQL_FILE" > "$TEST_DIR/sql_res.$TEST_NAME.txt"
mysql -uroot -h127.0.0.1 -P4000 --default-character-set utf8 -E -e "${prepare}" | tee -a "$OUT_DIR/sql_res.$TEST_NAME.txt"
cat $SQL_FILE | mysql -uroot -h127.0.0.1 -P4000 \
--ssl-ca="$TEST_DIR/certs/ca.pem" \
--ssl-cert="$TEST_DIR/certs/curl.pem" \
Expand Down