1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Changing SET SQL_LOG_BIN so that it explicitely throws an error if

user is not SUPER, instead of setting the value but ignoring it
silently internally.
This commit is contained in:
guilhem@mysql.com
2004-03-26 19:25:22 +01:00
parent 90a5e244be
commit 8066c2ce75
5 changed files with 29 additions and 16 deletions

View File

@@ -30,7 +30,17 @@ connect (con3,localhost,zedjzlcsjhd,,);
connection con3;
--error 1227
SET @@session.pseudo_thread_id=100;
# While we are here we also test that SQL_LOG_BIN can't be set
--error 1227
SET @@session.sql_log_bin=0;
# Now as root, to be sure it works
connection con2;
SET @@session.pseudo_thread_id=100;
SET @@session.pseudo_thread_id=connection_id();
SET @@session.sql_log_bin=0;
SET @@session.sql_log_bin=1;
connection con3;
let $VERSION=`select version()`;
--disable_warnings