summaryrefslogtreecommitdiff
path: root/sql/sql_view.cc
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2005-02-09 00:31:56 +0200
committerbell@sanja.is.com.ua <>2005-02-09 00:31:56 +0200
commiteb4fb7253d693ccbf7bcd54efde01bc0881da8f1 (patch)
tree62eef2403203c4e10bedaed33a05c35eef6fbd05 /sql/sql_view.cc
parent2c26ebe3594077cd90b95aaf591eaacc4eb2cdbe (diff)
parentb196fa2cfa7de72736ce2f9d0428a2b49dd2069f (diff)
downloadmariadb-git-eb4fb7253d693ccbf7bcd54efde01bc0881da8f1.tar.gz
Merge
Diffstat (limited to 'sql/sql_view.cc')
-rw-r--r--sql/sql_view.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_view.cc b/sql/sql_view.cc
index 456f513dab0..96a0dc2f636 100644
--- a/sql/sql_view.cc
+++ b/sql/sql_view.cc
@@ -305,6 +305,8 @@ bool mysql_create_view(THD *thd,
VOID(pthread_mutex_lock(&LOCK_open));
res= mysql_register_view(thd, view, mode);
VOID(pthread_mutex_unlock(&LOCK_open));
+ if (view->revision != 1)
+ query_cache_invalidate3(thd, view, 0);
start_waiting_global_read_lock(thd);
if (res)
goto err;
@@ -917,6 +919,7 @@ bool mysql_drop_view(THD *thd, TABLE_LIST *views, enum_drop_mode drop_mode)
}
if (my_delete(path, MYF(MY_WME)))
goto err;
+ query_cache_invalidate3(thd, view, 0);
VOID(pthread_mutex_unlock(&LOCK_open));
}
send_ok(thd);