Debian Codegraph @

mysql-test/suite/sys_vars/t/sql_auto_is_null_basic.test

raw
1
2
3 ################## mysql-test\t\sql_auto_is_null_basic.test ###################
4 # #
5 # Variable Name: sql_auto_is_null #
6 # Scope: Session #
7 # Access Type: Static #
8 # Data Type: filename #
9 # #
10 # #
11 # Creation Date: 2008-02-07 #
12 # Author : Sharique Abdullah #
13 # #
14 # #
15 # Description:Test Cases of Dynamic System Variable sql_auto_is_null #
16 # that checks the behavior of this variable in the following ways #
17 # * Value Check #
18 # * Scope Check #
19 # #
20 # Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
21 # server-system-variables.html #
22 # #
23 ###############################################################################
24
25 --echo '#---------------------BS_STVARS_044_01----------------------#'
26 ####################################################################
27 # Displaying default value #
28 ####################################################################
29
30 SELECT @@session.sql_auto_is_null;
31
32 --echo '#---------------------BS_STVARS_044_02----------------------#'
33 ####################################################################
34 # Check if Value can set #
35 ####################################################################
36
37 SET @@session.sql_auto_is_null=1;
38 SELECT @@session.sql_auto_is_null;
39
40 --echo '#---------------------BS_STVARS_044_03----------------------#'
41 #################################################################
42 # Check if the value in session Table matches value in variable #
43 #################################################################
44
45 --disable_warnings
46 SELECT IF(@@session.sql_auto_is_null, "ON", "OFF") = VARIABLE_VALUE
47 FROM performance_schema.session_variables
48 WHERE VARIABLE_NAME='sql_auto_is_null';
49
50 SELECT VARIABLE_VALUE FROM performance_schema.session_variables
51 WHERE VARIABLE_NAME='sql_auto_is_null';
52 --enable_warnings
53
54 --echo '#---------------------BS_STVARS_044_05----------------------#'
55 ################################################################################
56 # Check if sql_auto_is_null can be accessed with and without @@ sign #
57 ################################################################################
58
59 SELECT @@sql_auto_is_null;
60 SELECT @@local.sql_auto_is_null;
61 SELECT @@session.sql_auto_is_null;
62
63 SELECT @@global.sql_auto_is_null;
64