From 5d9f61ddec1d3cb9f2bba90fc57e41a5b4b942d6 Mon Sep 17 00:00:00 2001 From: zhyass <34016424+zhyass@users.noreply.github.com> Date: Wed, 13 May 2020 23:44:40 +0800 Subject: [PATCH] intergration: add set statement test cases #629 [summary] add intergration set.test [test case] N/A [patch codecov] N/A --- intergration/radon-test/r/set.result | 47 ++++++++++++++++++++++++++++ intergration/radon-test/t/set.test | 24 ++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 intergration/radon-test/r/set.result create mode 100644 intergration/radon-test/t/set.test diff --git a/intergration/radon-test/r/set.result b/intergration/radon-test/r/set.result new file mode 100644 index 00000000..05927acf --- /dev/null +++ b/intergration/radon-test/r/set.result @@ -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; diff --git a/intergration/radon-test/t/set.test b/intergration/radon-test/t/set.test new file mode 100644 index 00000000..9cd94dc8 --- /dev/null +++ b/intergration/radon-test/t/set.test @@ -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; \ No newline at end of file