Bug #92032 Restrict usage of session foreign_key_checks
| Submitted: | 15 Aug 2018 23:07 | Modified: | 17 Aug 2018 13:02 |
|---|---|---|---|
| Reporter: | Federico Razzoli (OCA) | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: Options | Severity: | S3 (Non-critical) |
| Version: | OS: | Any | |
| Assigned to: | CPU Architecture: | Any |
[15 Aug 2018 23:07]
Federico Razzoli
[17 Aug 2018 13:02]
MySQL Verification Team
Hi, Thank you for your bug report. I tend to agree with you that this variable should not be allowed at session level, without proper privileges. Verified as reported.
[1 Oct 2018 7:28]
Ståle Deraas
Posted by developer: We should consider 1) privilege for SET FOREIGN_KEY_CHECKS=0 2) ALTER TABLE ENABLE/DISABLE FK Reusing privilege for add/drop FKs to limit SET FOREIGN_KEY_CHECKS is not desireable as this would mean requiring global CREATE/DROP privs, which seem too much.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.050 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.