From 72acdb43ffe5fe78afa599e9cc71886a703829da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=B1=E5=B2=9A?= <36239017+YuJuncen@users.noreply.github.com> Date: Thu, 2 Sep 2021 14:12:15 +0800 Subject: [PATCH] tests: fix br_views_and_sequences (#27740) --- br/tests/br_views_and_sequences/run.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/br/tests/br_views_and_sequences/run.sh b/br/tests/br_views_and_sequences/run.sh index 99e6a52347..71403d0a0f 100755 --- a/br/tests/br_views_and_sequences/run.sh +++ b/br/tests/br_views_and_sequences/run.sh @@ -39,7 +39,7 @@ run_sql "insert into $DB.auto_inc values (), (), (), (), ();" last_id=$(run_sql "select n from $DB.auto_inc order by n desc limit 1" | trim_sql_result) run_sql "create table $DB.auto_rnd (n BIGINT primary key AUTO_RANDOM(8));" -last_rnd_id=$(run_sql "insert into $DB.auto_rnd values (), (), (), (), ();select last_insert_id() & 0xffffffffffffff;" | trim_sql_result ) +last_rnd_id=$(run_sql "insert into $DB.auto_rnd values (), (), (), (), ();select last_insert_id() & 0x7fffffffffffff;" | trim_sql_result ) echo "backup start..." run_br backup db --db "$DB" -s "local://$TEST_DIR/$DB" --pd $PD_ADDR @@ -61,10 +61,10 @@ seq_val=$(run_sql "select a >= 8 and b >= 4 as g from $DB.table_2 where c = 33;" run_sql "insert into $DB.auto_inc values ();" last_id_after_restore=$(run_sql "select n from $DB.auto_inc order by n desc limit 1;" | trim_sql_result) [ $last_id_after_restore -gt $last_id ] -rnd_last_id_after_restore=$(run_sql "insert into $DB.auto_rnd values ();select last_insert_id() & 0xffffffffffffff;" | trim_sql_result ) +rnd_last_id_after_restore=$(run_sql "insert into $DB.auto_rnd values ();select last_insert_id() & 0x7fffffffffffff;" | trim_sql_result ) [ $rnd_last_id_after_restore -gt $last_rnd_id ] rnd_count_after_restore=$(run_sql "select count(*) from $DB.auto_rnd;" | trim_sql_result ) [ $rnd_count_after_restore -gt 5 ] -run_sql "drop schema $DB" \ No newline at end of file +run_sql "drop schema $DB"