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

pick 'chore: stable bvt case result abort statement query_type' in 1.1 #15470

Merged
merged 3 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 22 additions & 0 deletions test/distributed/cases/statement_query_type/regression.result
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
drop account if exists bvt_query_type_reg;
create account if not exists `bvt_query_type_reg` ADMIN_NAME 'admin' IDENTIFIED BY '123456';
create database statement_query_type;
begin;
use statement_query_type;
create table test_table(col1 int,col2 varchar);
create view test_view as select * from test_table;
show create view test_view;
View Create View
test_view create view test_view as select * from test_table;
show collation like 'utf8mb4_general_ci';
Collation Charset Id Default Compiled Sortlen Pad_attribute
utf8mb4_general_ci utf8mb4 45 Yes 1 PAD SPACE
show collation like 'utf8mb4_general_ci%';
Collation Charset Id Default Compiled Sortlen Pad_attribute
utf8mb4_general_ci utf8mb4 45 Yes 1 PAD SPACE
load data infile '$resources/load_data/test.csv' into table test_table fields terminated by ',';
insert into test_table values (1,'a'),(2,'b'),(3,'c');
update test_table set col2='xxx' where col1=1;
delete from test_table where col1=3;
rollback ;
drop account if exists bvt_query_type_reg;
31 changes: 31 additions & 0 deletions test/distributed/cases/statement_query_type/regression.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
-- prepare account
drop account if exists bvt_query_type_reg;
create account if not exists `bvt_query_type_reg` ADMIN_NAME 'admin' IDENTIFIED BY '123456';

-- Login account
-- @session:id=1&user=bvt_query_type_reg:admin:accountadmin&password=123456

create database statement_query_type;

begin;
use statement_query_type;
create table test_table(col1 int,col2 varchar);
create view test_view as select * from test_table;
-- issue #7789
show create view test_view;
show collation like 'utf8mb4_general_ci';
show collation like 'utf8mb4_general_ci%';
-- issue end
load data infile '$resources/load_data/test.csv' into table test_table fields terminated by ',';
insert into test_table values (1,'a'),(2,'b'),(3,'c');
-- issue #7789
update test_table set col2='xxx' where col1=1;
delete from test_table where col1=3;
-- issue end
rollback ;

-- @session
-- END

-- cleanup
drop account if exists bvt_query_type_reg;