diff options
author | unknown <gshchepa/uchum@gleb.loc> | 2007-08-21 01:39:39 +0500 |
---|---|---|
committer | unknown <gshchepa/uchum@gleb.loc> | 2007-08-21 01:39:39 +0500 |
commit | 7c3d5bc5c49e054bd48f632f95a228f426394977 (patch) | |
tree | c76ad35d9d0ced4f5985670cade366090de7954c /sql/sql_view.cc | |
parent | bbf2211bdcd43581b9ddf54f1bfc731384e289c7 (diff) | |
download | mariadb-git-7c3d5bc5c49e054bd48f632f95a228f426394977.tar.gz |
Fixed bug #30287.
The server created temporary tables for filesort in the working directory
instead of the specified tmpdir directory.
sql/item.cc:
Fixed bug #30287.
The Item_field::set_field method has been modified to reset the any_privileges
flag to false in case of system temporary table. This modification prevents the
server from unnecessary checking of user privileges to access system temporary
tables.
sql/sql_select.cc:
Fixed bug #30287.
Bugfix for #29015 has been removed: TABLE_SHARE::table_name of system
temporary tables contains full path to table file basename again.
sql/sql_view.cc:
Fixed bug #30287.
Commentary has been added.
Diffstat (limited to 'sql/sql_view.cc')
-rw-r--r-- | sql/sql_view.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/sql_view.cc b/sql/sql_view.cc index 7857ba267c5..56d7a3f8a9d 100644 --- a/sql/sql_view.cc +++ b/sql/sql_view.cc @@ -397,7 +397,13 @@ bool mysql_create_view(THD *thd, TABLE_LIST *views, { Item_field *field; if ((field= item->filed_for_view_update())) + { + /* + any_privileges may be reset later by the Item_field::set_field + method in case of a system temporary table. + */ field->any_privileges= 1; + } } } #endif |