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
c9b5a053
Commit
c9b5a053
authored
May 17, 2022
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-28588 SIGSEGV in __memmove_avx_unaligned_erms, strmake_root
parent
3e564d46
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
1 deletion
+42
-1
mysql-test/suite/compat/oracle/r/sp.result
mysql-test/suite/compat/oracle/r/sp.result
+18
-0
mysql-test/suite/compat/oracle/t/sp.test
mysql-test/suite/compat/oracle/t/sp.test
+23
-0
sql/sql_lex.cc
sql/sql_lex.cc
+1
-1
No files found.
mysql-test/suite/compat/oracle/r/sp.result
View file @
c9b5a053
...
...
@@ -2560,3 +2560,21 @@ idx
idx
1
DROP PROCEDURE p1;
#
# MDEV-28588 SIGSEGV in __memmove_avx_unaligned_erms, strmake_root
#
SET sql_mode=ORACLE;
BEGIN END;
SET sql_mode=ORACLE;
CREATE EVENT ev ON SCHEDULE AT CURRENT_TIMESTAMP + INTERVAL 1 HOUR DO BEGIN END;
Warnings:
Warning 1105 Event scheduler is switched off, use SET GLOBAL event_scheduler=ON to enable it.
SELECT EVENT_DEFINITION FROM INFORMATION_SCHEMA.EVENTS WHERE EVENT_SCHEMA='test' AND EVENT_NAME='ev';
EVENT_DEFINITION BEGIN END
DROP EVENT ev;
CREATE TABLE t1 (a INT);
CREATE TRIGGER tr AFTER INSERT ON t1 FOR EACH ROW BEGIN END;
SELECT ACTION_STATEMENT FROM INFORMATION_SCHEMA.TRIGGERS WHERE TRIGGER_SCHEMA='test' AND TRIGGER_NAME='tr';
ACTION_STATEMENT BEGIN END
DROP TRIGGER tr;
DROP TABLE t1;
mysql-test/suite/compat/oracle/t/sp.test
View file @
c9b5a053
...
...
@@ -2397,3 +2397,26 @@ $$
DELIMITER
;
$$
CALL
p1
();
DROP
PROCEDURE
p1
;
--
echo
#
--
echo
# MDEV-28588 SIGSEGV in __memmove_avx_unaligned_erms, strmake_root
--
echo
#
SET
sql_mode
=
ORACLE
;
BEGIN
END
;
SET
sql_mode
=
ORACLE
;
CREATE
EVENT
ev
ON
SCHEDULE
AT
CURRENT_TIMESTAMP
+
INTERVAL
1
HOUR
DO
BEGIN
END
;
--
vertical_results
SELECT
EVENT_DEFINITION
FROM
INFORMATION_SCHEMA
.
EVENTS
WHERE
EVENT_SCHEMA
=
'test'
AND
EVENT_NAME
=
'ev'
;
--
horizontal_results
DROP
EVENT
ev
;
CREATE
TABLE
t1
(
a
INT
);
CREATE
TRIGGER
tr
AFTER
INSERT
ON
t1
FOR
EACH
ROW
BEGIN
END
;
--
vertical_results
SELECT
ACTION_STATEMENT
FROM
INFORMATION_SCHEMA
.
TRIGGERS
WHERE
TRIGGER_SCHEMA
=
'test'
AND
TRIGGER_NAME
=
'tr'
;
--
horizontal_results
DROP
TRIGGER
tr
;
DROP
TABLE
t1
;
sql/sql_lex.cc
View file @
c9b5a053
...
...
@@ -6674,7 +6674,7 @@ bool LEX::maybe_start_compound_statement(THD *thd)
if
(
!
make_sp_head
(
thd
,
NULL
,
&
sp_handler_procedure
))
return
true
;
sphead
->
set_suid
(
SP_IS_NOT_SUID
);
sphead
->
set_body_start
(
thd
,
thd
->
m_parser_state
->
m_lip
.
get_cpp_
ptr
());
sphead
->
set_body_start
(
thd
,
thd
->
m_parser_state
->
m_lip
.
get_cpp_
tok_start
());
}
return
false
;
}
...
...
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