summaryrefslogtreecommitdiff
path: root/sql/sql_base.cc
diff options
context:
space:
mode:
authorunknown <holyfoot/hf@mysql.com/hfmain.(none)>2007-04-04 14:01:47 +0500
committerunknown <holyfoot/hf@mysql.com/hfmain.(none)>2007-04-04 14:01:47 +0500
commit93e11dce942e8aec8501982fe3e664a9d4abd471 (patch)
treeed0d8599026a089115032c4a19d06c1789df15cd /sql/sql_base.cc
parentc242662096e1ce16b249c478702be54c190d3f5e (diff)
downloadmariadb-git-93e11dce942e8aec8501982fe3e664a9d4abd471.tar.gz
Bug #23675 Partitions: possible security breach via alter
now we return different error message if user doesn't have SELECT grants mysql-test/r/partition_grant.result: test result mysql-test/t/partition_grant.test: testcase sql/mysql_priv.h: no_errors parameter added to check_single_table_access() sql/partition_info.cc: access rights control added to the print_no_partition() sql/share/errmsg.txt: message added sql/sql_base.cc: no_errors parameter added to check_single_table_access() sql/sql_parse.cc: no_errors parameter added to check_single_table_access()
Diffstat (limited to 'sql/sql_base.cc')
-rw-r--r--sql/sql_base.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc
index d4316f11491..06207492926 100644
--- a/sql/sql_base.cc
+++ b/sql/sql_base.cc
@@ -5781,7 +5781,7 @@ bool setup_tables_and_check_access(THD *thd,
{
if (leaves_tmp->belong_to_view &&
check_single_table_access(thd, first_table ? want_access_first :
- want_access, leaves_tmp))
+ want_access, leaves_tmp, FALSE))
{
tables->hide_view_error(thd);
return TRUE;