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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
8af9a0d7
Commit
8af9a0d7
authored
Mar 18, 2005
by
pem@mysql.comhem.se
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed BUG#6600: Stored procedure crash after repeated calls with check table
parent
00c220ea
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
0 deletions
+44
-0
mysql-test/r/sp.result
mysql-test/r/sp.result
+19
-0
mysql-test/t/sp.test
mysql-test/t/sp.test
+22
-0
sql/sp_head.cc
sql/sp_head.cc
+1
-0
sql/sql_parse.cc
sql/sql_parse.cc
+2
-0
No files found.
mysql-test/r/sp.result
View file @
8af9a0d7
...
...
@@ -2777,4 +2777,23 @@ a
3.2000
drop procedure bug8937|
delete from t1|
drop procedure if exists bug6600|
drop table if exists t3|
drop view if exists v1|
create table t3 (s1 decimal(31,30))|
create view v1 as select * from t3|
create procedure bug6600()
check table v1|
call bug6600()|
Table Op Msg_type Msg_text
test.v1 check status OK
call bug6600()|
Table Op Msg_type Msg_text
test.v1 check status OK
call bug6600()|
Table Op Msg_type Msg_text
test.v1 check status OK
drop procedure bug6600|
drop view v1|
drop table t3|
drop table t1,t2;
mysql-test/t/sp.test
View file @
8af9a0d7
...
...
@@ -3398,6 +3398,28 @@ drop procedure bug8937|
delete
from
t1
|
#
# BUG#6600: Stored procedure crash after repeated calls with check table
#
--
disable_warnings
drop
procedure
if
exists
bug6600
|
drop
table
if
exists
t3
|
drop
view
if
exists
v1
|
--
enable_warnings
create
table
t3
(
s1
decimal
(
31
,
30
))
|
create
view
v1
as
select
*
from
t3
|
create
procedure
bug6600
()
check
table
v1
|
call
bug6600
()
|
call
bug6600
()
|
call
bug6600
()
|
drop
procedure
bug6600
|
drop
view
v1
|
drop
table
t3
|
#
# BUG#NNNN: New bug synopsis
#
...
...
sql/sp_head.cc
View file @
8af9a0d7
...
...
@@ -58,6 +58,7 @@ sp_multi_results_command(enum enum_sql_command cmd)
{
switch
(
cmd
)
{
case
SQLCOM_ANALYZE
:
case
SQLCOM_CHECK
:
case
SQLCOM_CHECKSUM
:
case
SQLCOM_HA_READ
:
case
SQLCOM_SHOW_BINLOGS
:
...
...
sql/sql_parse.cc
View file @
8af9a0d7
...
...
@@ -27,6 +27,7 @@
#include "sp_head.h"
#include "sp.h"
#include "sp_cache.h"
#ifdef HAVE_OPENSSL
/*
...
...
@@ -3045,6 +3046,7 @@ unsent_create_error:
goto
error
;
/* purecov: inspected */
thd
->
slow_command
=
TRUE
;
res
=
mysql_check_table
(
thd
,
first_table
,
&
lex
->
check_opt
);
sp_cache_invalidate
();
break
;
}
case
SQLCOM_ANALYZE
:
...
...
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