mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Fix for bug #7210: information_schema: can't access when table-name = reserved word
This commit is contained in:
@ -590,6 +590,23 @@ TABLES
|
||||
TABLE_PRIVILEGES
|
||||
TABLE_CONSTRAINTS
|
||||
TABLE_NAMES
|
||||
select table_name from tables where table_name='user';
|
||||
table_name
|
||||
user
|
||||
select column_name, privileges from columns
|
||||
where table_name='user' and column_name like '%o%';
|
||||
column_name privileges
|
||||
Host select,insert,update,references
|
||||
Password select,insert,update,references
|
||||
Drop_priv select,insert,update,references
|
||||
Reload_priv select,insert,update,references
|
||||
Shutdown_priv select,insert,update,references
|
||||
Process_priv select,insert,update,references
|
||||
Show_db_priv select,insert,update,references
|
||||
Lock_tables_priv select,insert,update,references
|
||||
Show_view_priv select,insert,update,references
|
||||
max_questions select,insert,update,references
|
||||
max_connections select,insert,update,references
|
||||
use test;
|
||||
create function sub1(i int) returns int
|
||||
return i+1;
|
||||
|
@ -293,6 +293,13 @@ show tables;
|
||||
use information_schema;
|
||||
show tables like "T%";
|
||||
|
||||
#
|
||||
# Bug#7210: information_schema: can't access when table-name = reserved word
|
||||
#
|
||||
select table_name from tables where table_name='user';
|
||||
select column_name, privileges from columns
|
||||
where table_name='user' and column_name like '%o%';
|
||||
|
||||
#
|
||||
# Bug#7212: information_schema: "Can't find file" errors if storage engine gone
|
||||
# Bug#7211: information_schema: crash if bad view
|
||||
|
Reference in New Issue
Block a user