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.