Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
bc409858
Commit
bc409858
authored
Jul 18, 2022
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-29074 GET_BIT variables crash in SET STATEMENT
parent
0ee5cf83
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
0 deletions
+23
-0
mysql-test/main/set_statement.result
mysql-test/main/set_statement.result
+12
-0
mysql-test/main/set_statement.test
mysql-test/main/set_statement.test
+10
-0
sql/sql_parse.cc
sql/sql_parse.cc
+1
-0
No files found.
mysql-test/main/set_statement.result
View file @
bc409858
...
...
@@ -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
#
mysql-test/main/set_statement.test
View file @
bc409858
...
...
@@ -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
#
sql/sql_parse.cc
View file @
bc409858
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment