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
57fdd016
Commit
57fdd016
authored
Sep 30, 2021
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.3 into 10.4
parents
a10b63bf
333d6c30
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
mysql-test/main/lock_sync.result
mysql-test/main/lock_sync.result
+3
-0
mysql-test/main/lock_sync.test
mysql-test/main/lock_sync.test
+3
-0
sql/sp.cc
sql/sp.cc
+8
-0
No files found.
mysql-test/main/lock_sync.result
View file @
57fdd016
...
...
@@ -221,6 +221,8 @@ end|
# called below.
#
connection con1;
set @save_dbug=@@debug_dbug;
set debug_dbug="+d,cache_sp_in_show_create";
# Cache all functions used in the tests below so statements
# calling them won't need to open and lock mysql.proc table
# and we can assume that each statement locks its tables
...
...
@@ -245,6 +247,7 @@ show create function f14;
show create function f15;
show create function f16;
show create function f17;
set debug_dbug=@save_dbug;
connection default;
#
# 1. Statements that read tables and do not use subqueries.
...
...
mysql-test/main/lock_sync.test
View file @
57fdd016
...
...
@@ -232,6 +232,8 @@ let $con_aux2= con2;
let
$table
=
t1
;
connection
con1
;
set
@
save_dbug
=@@
debug_dbug
;
set
debug_dbug
=
"+d,cache_sp_in_show_create"
;
--
echo
# Cache all functions used in the tests below so statements
--
echo
# calling them won't need to open and lock mysql.proc table
--
echo
# and we can assume that each statement locks its tables
...
...
@@ -257,6 +259,7 @@ show create function f14;
show
create
function
f15
;
show
create
function
f16
;
show
create
function
f17
;
set
debug_dbug
=@
save_dbug
;
--
enable_result_log
connection
default
;
...
...
sql/sp.cc
View file @
57fdd016
...
...
@@ -1904,6 +1904,14 @@ Sp_handler::sp_show_create_routine(THD *thd,
of the binary log or the query cache, which currently it does not.
*/
sp_head
*
sp
=
0
;
DBUG_EXECUTE_IF
(
"cache_sp_in_show_create"
,
/* Some tests need just need a way to cache SP without other side-effects.*/
sp_cache_routine
(
thd
,
name
,
false
,
&
sp
);
sp
->
show_create_routine
(
thd
,
this
);
DBUG_RETURN
(
false
);
);
bool
free_sp
=
db_find_routine
(
thd
,
name
,
&
sp
)
==
SP_OK
;
bool
ret
=
!
sp
||
sp
->
show_create_routine
(
thd
,
this
);
if
(
ret
)
...
...
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