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
65e3d360
Commit
65e3d360
authored
Apr 17, 2009
by
Sergey Glukhov
Browse files
Options
Browse Files
Download
Plain Diff
5.0-bugteam->5.1-bugteam merge
parents
2cdc1c61
4fbfa8db
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
0 deletions
+24
-0
mysql-test/include/handler.inc
mysql-test/include/handler.inc
+8
-0
mysql-test/r/handler_innodb.result
mysql-test/r/handler_innodb.result
+4
-0
mysql-test/r/handler_myisam.result
mysql-test/r/handler_myisam.result
+4
-0
sql/sql_handler.cc
sql/sql_handler.cc
+8
-0
No files found.
mysql-test/include/handler.inc
View file @
65e3d360
...
@@ -720,3 +720,11 @@ connection con1;
...
@@ -720,3 +720,11 @@ connection con1;
drop
table
t1
;
drop
table
t1
;
disconnect
con1
;
disconnect
con1
;
connection
default
;
connection
default
;
#
# Bug#44151 using handler commands on information_schema tables crashes server
#
USE
information_schema
;
--
error
ER_WRONG_USAGE
HANDLER
COLUMNS
OPEN
;
USE
test
;
mysql-test/r/handler_innodb.result
View file @
65e3d360
...
@@ -739,3 +739,7 @@ handler t1 read a next;
...
@@ -739,3 +739,7 @@ handler t1 read a next;
ERROR HY000: Table storage engine for 't1' doesn't have this option
ERROR HY000: Table storage engine for 't1' doesn't have this option
handler t1 close;
handler t1 close;
drop table t1;
drop table t1;
USE information_schema;
HANDLER COLUMNS OPEN;
ERROR HY000: Incorrect usage of HANDLER OPEN and information_schema
USE test;
mysql-test/r/handler_myisam.result
View file @
65e3d360
...
@@ -737,3 +737,7 @@ handler t1 read a next;
...
@@ -737,3 +737,7 @@ handler t1 read a next;
ERROR HY000: Table storage engine for 't1' doesn't have this option
ERROR HY000: Table storage engine for 't1' doesn't have this option
handler t1 close;
handler t1 close;
drop table t1;
drop table t1;
USE information_schema;
HANDLER COLUMNS OPEN;
ERROR HY000: Incorrect usage of HANDLER OPEN and information_schema
USE test;
sql/sql_handler.cc
View file @
65e3d360
...
@@ -199,6 +199,14 @@ bool mysql_ha_open(THD *thd, TABLE_LIST *tables, bool reopen)
...
@@ -199,6 +199,14 @@ bool mysql_ha_open(THD *thd, TABLE_LIST *tables, bool reopen)
tables
->
db
,
tables
->
table_name
,
tables
->
alias
,
tables
->
db
,
tables
->
table_name
,
tables
->
alias
,
(
int
)
reopen
));
(
int
)
reopen
));
if
(
tables
->
schema_table
)
{
my_error
(
ER_WRONG_USAGE
,
MYF
(
0
),
"HANDLER OPEN"
,
INFORMATION_SCHEMA_NAME
.
str
);
DBUG_PRINT
(
"exit"
,(
"ERROR"
));
DBUG_RETURN
(
TRUE
);
}
if
(
!
hash_inited
(
&
thd
->
handler_tables_hash
))
if
(
!
hash_inited
(
&
thd
->
handler_tables_hash
))
{
{
/*
/*
...
...
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