diff options
author | unknown <guilhem@mysql.com> | 2004-03-27 01:07:09 +0100 |
---|---|---|
committer | unknown <guilhem@mysql.com> | 2004-03-27 01:07:09 +0100 |
commit | ec4a9dc983843032aa2a73f1c61d728dc36a3b08 (patch) | |
tree | 4a804c1e3f99185976ad3d15e10f6f2b147886a7 /mysql-test/r/rpl_temporary.result | |
parent | 266d36196dc92babd1e934b35573b957d89de56d (diff) | |
download | mariadb-git-ec4a9dc983843032aa2a73f1c61d728dc36a3b08.tar.gz |
A previous changeset by me today about SQL_LOG_BIN had the problem
that it tested the privilege in ::update() whereas it should be
in ::check() (see email from Serg, subject
"Re: bk commit - 4.1 tree (guilhem:1.1706)").
So I add instead a check_func function to sys_var_thd_bit.
I do the same addition to sys_var_thd_ulong, to unify handling
of PSEUDO_THREAD_ID with the one of SQL_LOG_BIN. So class
sys_var_pseudo_thread_id is not needed anymore, removing it.
mysql-test/r/rpl_temporary.result:
result update
mysql-test/t/rpl_temporary.test:
tests after new way of fixing; verify that when second variable
assignment is refused then first is not done.
sql/set_var.cc:
a check_func (check_log_update) when setting SQL_LOG_BIN,
and one when setting PSEUDO_THREAD_ID.
Removing class sys_var_pseudo_thread_id.
Updates for new prototypes of constructor in sys_var_thd_bit
and sys_var_thd_ulong.
sql/set_var.h:
Adding check_func to sys_var_thd_bit.
Adding check_func to sys_var_thd_ulong, so class sys_var_pseudo_thread_id
is not needed anymore, removing it.
Diffstat (limited to 'mysql-test/r/rpl_temporary.result')
-rw-r--r-- | mysql-test/r/rpl_temporary.result | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/mysql-test/r/rpl_temporary.result b/mysql-test/r/rpl_temporary.result index 97561aa1218..465a1fed2b4 100644 --- a/mysql-test/r/rpl_temporary.result +++ b/mysql-test/r/rpl_temporary.result @@ -5,10 +5,17 @@ reset slave; drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; start slave; reset master; -SET @@session.pseudo_thread_id=100; +SET @save_select_limit=@@session.sql_select_limit; +SET @@session.sql_select_limit=10, @@session.pseudo_thread_id=100; ERROR HY000: Access denied. You need the SUPER privilege for this operation -SET @@session.sql_log_bin=0; +SELECT @@session.sql_select_limit = @save_select_limit; +@@session.sql_select_limit = @save_select_limit +1 +SET @@session.sql_select_limit=10, @@session.sql_log_bin=0; ERROR HY000: Access denied. You need the SUPER privilege for this operation +SELECT @@session.sql_select_limit = @save_select_limit; +@@session.sql_select_limit = @save_select_limit +1 SET @@session.pseudo_thread_id=100; SET @@session.pseudo_thread_id=connection_id(); SET @@session.sql_log_bin=0; |