diff options
author | Sergei Golubchik <sergii@pisem.net> | 2013-12-13 14:26:10 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2013-12-13 14:26:10 +0100 |
commit | ff485d2dc4d5adaf5eef0ccd03ce62adf3bd30b3 (patch) | |
tree | 250676745923651e8199fa2a9985ad2ec716b5bf /sql/sql_view.cc | |
parent | 0c0fe7a8623db29ae810df9b8c83b49d9ca86cc5 (diff) | |
download | mariadb-git-ff485d2dc4d5adaf5eef0ccd03ce62adf3bd30b3.tar.gz |
MDEV-5438 A view can mask a table that supports discovery
Diffstat (limited to 'sql/sql_view.cc')
-rw-r--r-- | sql/sql_view.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_view.cc b/sql/sql_view.cc index 505b8b25f89..09ce9c37e2d 100644 --- a/sql/sql_view.cc +++ b/sql/sql_view.cc @@ -908,7 +908,7 @@ loop_out: fn_format(path_buff, file.str, dir.str, "", MY_UNPACK_FILENAME); path.length= strlen(path_buff); - if (!access(path.str, F_OK)) + if (ha_table_exists(thd, view->db, view->table_name, NULL)) { if (mode == VIEW_CREATE_NEW) { |