mirror of
https://github.com/zebrajr/server.git
synced 2025-12-06 12:20:40 +01:00
MDEV-29074 GET_BIT variables crash in SET STATEMENT
This commit is contained in:
parent
0ee5cf837e
commit
bc4098582b
|
|
@ -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
|
||||
#
|
||||
|
|
|
|||
|
|
@ -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 #
|
||||
|
|
|
|||
|
|
@ -3313,6 +3313,7 @@ bool run_set_statement_if_requested(THD *thd, LEX *lex)
|
|||
{
|
||||
switch (v->var->option.var_type & GET_TYPE_MASK)
|
||||
{
|
||||
case GET_BIT:
|
||||
case GET_BOOL:
|
||||
case GET_INT:
|
||||
case GET_LONG:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user