summaryrefslogtreecommitdiff
path: root/sql/sql_view.cc
diff options
context:
space:
mode:
authorunknown <evgen@moonbone.local>2007-03-22 23:13:40 +0300
committerunknown <evgen@moonbone.local>2007-03-22 23:13:40 +0300
commit842eaa44e54acd164901c06c0f12f0452d9c4f66 (patch)
treefce36e989551f08f4c9f8e4053c6dbdff7d109ed /sql/sql_view.cc
parent9558c66c2e9ee9bdfda97cd5603ad32a16b5e865 (diff)
downloadmariadb-git-842eaa44e54acd164901c06c0f12f0452d9c4f66.tar.gz
sql_view.cc:
Post-fix for bug#26813. sql/sql_view.cc: Post-fix for bug#26813.
Diffstat (limited to 'sql/sql_view.cc')
-rw-r--r--sql/sql_view.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_view.cc b/sql/sql_view.cc
index 714534707d1..83beec3d1be 100644
--- a/sql/sql_view.cc
+++ b/sql/sql_view.cc
@@ -224,7 +224,9 @@ bool mysql_create_view(THD *thd, TABLE_LIST *views,
{
LEX *lex= thd->lex;
bool link_to_local;
+#ifndef NO_EMBEDDED_ACCESS_CHECKS
bool definer_check_is_needed= mode != VIEW_ALTER || lex->definer;
+#endif
/* first table in list is target VIEW name => cut off it */
TABLE_LIST *view= lex->unlink_first_table(&link_to_local);
TABLE_LIST *tables= lex->query_tables;