summaryrefslogtreecommitdiff
path: root/sql/sql_view.cc
diff options
context:
space:
mode:
authorunknown <evgen@sunlight.local>2006-08-02 00:38:38 +0400
committerunknown <evgen@sunlight.local>2006-08-02 00:38:38 +0400
commit84b16f0e66506c4fba1ed4acea932a56e206a86c (patch)
tree5041c32b233359021a59fb69db4f27933094cbab /sql/sql_view.cc
parent8ce7848a52b524182af5590ff4dcda490668699a (diff)
downloadmariadb-git-84b16f0e66506c4fba1ed4acea932a56e206a86c.tar.gz
sql_view.cc:
After merge fix sql/sql_view.cc: After merge fix
Diffstat (limited to 'sql/sql_view.cc')
-rw-r--r--sql/sql_view.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_view.cc b/sql/sql_view.cc
index 546d940e3a4..09a199b2738 100644
--- a/sql/sql_view.cc
+++ b/sql/sql_view.cc
@@ -1304,11 +1304,11 @@ bool mysql_drop_view(THD *thd, TABLE_LIST *views, enum_drop_mode drop_mode)
for (view= views; view; view= view->next_local)
{
TABLE_SHARE *share;
- bool type= 0;
+ frm_type_enum type= FRMTYPE_ERROR;
build_table_filename(path, sizeof(path),
view->db, view->table_name, reg_ext);
VOID(pthread_mutex_lock(&LOCK_open));
- type= FRMTYPE_ERROR;
+
if (access(path, F_OK) ||
FRMTYPE_VIEW != (type= mysql_frm_type(thd, path, &not_used)))
{