summaryrefslogtreecommitdiff
path: root/sql/sql_view.cc
diff options
context:
space:
mode:
authorgshchepa/uchum@gleb.loc <>2007-08-21 01:39:39 +0500
committergshchepa/uchum@gleb.loc <>2007-08-21 01:39:39 +0500
commit5d3809c2644a3359c9b6c9a1fddf79044358a163 (patch)
treec76ad35d9d0ced4f5985670cade366090de7954c /sql/sql_view.cc
parent222fddcb79e6746a618a671b0d44ce7856146d40 (diff)
downloadmariadb-git-5d3809c2644a3359c9b6c9a1fddf79044358a163.tar.gz
Fixed bug #30287.
The server created temporary tables for filesort in the working directory instead of the specified tmpdir directory.
Diffstat (limited to 'sql/sql_view.cc')
-rw-r--r--sql/sql_view.cc6
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