diff options
author | Sergei Golubchik <serg@mariadb.org> | 2022-07-18 13:38:27 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2022-07-26 14:42:32 +0200 |
commit | bc4098582b76d24492b08b0a0df664031756a32e (patch) | |
tree | 404279e909aadce0ae5cf89331052f0f4edd79c5 /mysql-test | |
parent | 0ee5cf837e3a0464acc20db2a2aee0adaff3f2ac (diff) | |
download | mariadb-git-bc4098582b76d24492b08b0a0df664031756a32e.tar.gz |
MDEV-29074 GET_BIT variables crash in SET STATEMENT
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/main/set_statement.result | 12 | ||||
-rw-r--r-- | mysql-test/main/set_statement.test | 10 |
2 files changed, 22 insertions, 0 deletions
diff --git a/mysql-test/main/set_statement.result b/mysql-test/main/set_statement.result index 76f943edfc6..9e9d7e8c74e 100644 --- a/mysql-test/main/set_statement.result +++ b/mysql-test/main/set_statement.result @@ -1242,3 +1242,15 @@ t1 CREATE TABLE `t1` ( `c1` varchar(3) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1 DROP TABLE t1; +# +# MDEV-29074 GET_BIT variables crash in SET STATEMENT +# +set statement log_queries_not_using_indexes=1 for select @@log_queries_not_using_indexes; +@@log_queries_not_using_indexes +1 +select @@log_queries_not_using_indexes; +@@log_queries_not_using_indexes +0 +# +# End of 10.3 tests +# diff --git a/mysql-test/main/set_statement.test b/mysql-test/main/set_statement.test index 7af970e952f..0df223860b9 100644 --- a/mysql-test/main/set_statement.test +++ b/mysql-test/main/set_statement.test @@ -1159,3 +1159,13 @@ SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR CREATE TABLE t1 AS SELECT SHOW CREATE TABLE t1; DROP TABLE t1; + +--echo # +--echo # MDEV-29074 GET_BIT variables crash in SET STATEMENT +--echo # +set statement log_queries_not_using_indexes=1 for select @@log_queries_not_using_indexes; +select @@log_queries_not_using_indexes; + +--echo # +--echo # End of 10.3 tests +--echo # |