Bug #70280 sql_safe_updates fails when set in global scope

Submitted: 9 Sep 2013 21:21 Modified: 9 Sep 2013 21:41
Reporter: monty solomon Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server Severity:S2 (Serious)
Version:5.5.31 OS:Linux (CentOS release 6.3)
Assigned to: CPU Architecture:Any

[9 Sep 2013 21:21] monty solomon
Description:
The sql_safe_updates variable does not work when set in global scope.

How to repeat:
mysql> set global sql_safe_updates=1;
Query OK, 0 rows affected (0.00 sec)

mysql> show global variables like 'sql_safe_updates';
+------------------+-------+
| Variable_name    | Value |
+------------------+-------+
| sql_safe_updates | ON    |
+------------------+-------+
1 row in set (0.00 sec)

mysql> delete from t2;
Query OK, 16 rows affected (0.00 sec)
[9 Sep 2013 21:41] monty solomon
The global variable change does not affect the session variable for any client that is currently connected.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.048 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.