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
d2e723bf
Commit
d2e723bf
authored
Dec 15, 2009
by
Georgi Kodinov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #48985: show create table crashes if previous access to the table
was killed Merge the fix from 5.1-bugteam to 5.1-main
parent
838adcf2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
1 deletion
+29
-1
mysql-test/r/show_check.result
mysql-test/r/show_check.result
+6
-0
mysql-test/t/show_check.test
mysql-test/t/show_check.test
+22
-0
sql/sql_show.cc
sql/sql_show.cc
+1
-1
No files found.
mysql-test/r/show_check.result
View file @
d2e723bf
...
...
@@ -1454,4 +1454,10 @@ GRANT PROCESS ON *.* TO test_u@localhost;
SHOW ENGINE MYISAM MUTEX;
SHOW ENGINE MYISAM STATUS;
DROP USER test_u@localhost;
#
# Bug #48985: show create table crashes if previous access to the table
# was killed
#
SHOW CREATE TABLE non_existent;
ERROR 70100: Query execution was interrupted
End of 5.1 tests
mysql-test/t/show_check.test
View file @
d2e723bf
...
...
@@ -1207,6 +1207,28 @@ connection default;
DROP
USER
test_u
@
localhost
;
--
echo
#
--
echo
# Bug #48985: show create table crashes if previous access to the table
--
echo
# was killed
--
echo
#
connect
(
con1
,
localhost
,
root
,,);
CONNECTION
con1
;
LET
$ID
=
`SELECT connection_id()`
;
CONNECTION
default
;
--
disable_query_log
eval
KILL
QUERY
$ID
;
--
enable_query_log
CONNECTION
con1
;
--
error
ER_QUERY_INTERRUPTED
SHOW
CREATE
TABLE
non_existent
;
CONNECTION
default
;
DISCONNECT
con1
;
--
echo
End
of
5.1
tests
# Wait till all disconnects are completed
...
...
sql/sql_show.cc
View file @
d2e723bf
...
...
@@ -719,7 +719,7 @@ mysqld_show_create(THD *thd, TABLE_LIST *table_list)
thd
->
push_internal_handler
(
&
view_error_suppressor
);
bool
error
=
open_normal_and_derived_tables
(
thd
,
table_list
,
0
);
thd
->
pop_internal_handler
();
if
(
error
&&
thd
->
main_da
.
is_error
(
))
if
(
error
&&
(
thd
->
killed
||
thd
->
main_da
.
is_error
()
))
DBUG_RETURN
(
TRUE
);
}
...
...
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