Skip to content

Commit

Permalink
Merge pull request #637 from zhyass/feature_set
Browse files Browse the repository at this point in the history
intergration: add set statement test cases #629
  • Loading branch information
BohuTANG authored May 14, 2020
2 parents d646644 + 5d9f61d commit dd4f717
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
47 changes: 47 additions & 0 deletions intergration/radon-test/r/set.result
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
SET SESSION sql_mode = 'TRADITIONAL';

SET LOCAL sql_mode = 'TRADITIONAL';

SET @@SESSION.sql_mode = 'TRADITIONAL';

SET @@LOCAL.sql_mode = 'TRADITIONAL';

SET @@sql_mode = 'TRADITIONAL';

SET sql_mode = 'TRADITIONAL';

set session autocommit = 0;

set session autocommit = on;

set charset latin1;

set CHARACTER SET gbk;

set names gbk;

set names 'latin1' collate latin1_german2_ci;

set @@SESSION.radon_streaming_fetch=true;

set @@SESSION.radon_streaming_fetch=false;

SET GLOBAL sort_buffer_size = 1000000, SESSION sort_buffer_size = 1000000;

SET @@GLOBAL.sort_buffer_size = 1000000, @@LOCAL.sort_buffer_size = 1000000;

SET GLOBAL max_connections = 1000, sort_buffer_size = 1000000;

set session transaction read only;

set global transaction read write;

set transaction isolation level repeatable read;

set global transaction isolation level read committed;

set transaction isolation level read uncommitted;

set transaction isolation level serializable;

set transaction isolation level serializable, read write;
24 changes: 24 additions & 0 deletions intergration/radon-test/t/set.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
SET SESSION sql_mode = 'TRADITIONAL';
SET LOCAL sql_mode = 'TRADITIONAL';
SET @@SESSION.sql_mode = 'TRADITIONAL';
SET @@LOCAL.sql_mode = 'TRADITIONAL';
SET @@sql_mode = 'TRADITIONAL';
SET sql_mode = 'TRADITIONAL';
set session autocommit = 0;
set session autocommit = on;
set charset latin1;
set CHARACTER SET gbk;
set names gbk;
set names 'latin1' collate latin1_german2_ci;
set @@SESSION.radon_streaming_fetch=true;
set @@SESSION.radon_streaming_fetch=false;
SET GLOBAL sort_buffer_size = 1000000, SESSION sort_buffer_size = 1000000;
SET @@GLOBAL.sort_buffer_size = 1000000, @@LOCAL.sort_buffer_size = 1000000;
SET GLOBAL max_connections = 1000, sort_buffer_size = 1000000;
set session transaction read only;
set global transaction read write;
set transaction isolation level repeatable read;
set global transaction isolation level read committed;
set transaction isolation level read uncommitted;
set transaction isolation level serializable;
set transaction isolation level serializable, read write;

0 comments on commit dd4f717

Please sign in to comment.