Bug #71499 | CANT SYNC WITH FOREIGN OPTION RESTRICT DELETE | ||
---|---|---|---|
Submitted: | 28 Jan 2014 12:58 | Modified: | 12 Mar 2014 1:11 |
Reporter: | the cupu | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Workbench | Severity: | S3 (Non-critical) |
Version: | 6.0.9 | OS: | Windows (WIN 7 SP1 64BIT) |
Assigned to: | CPU Architecture: | Any |
[28 Jan 2014 12:58]
the cupu
[28 Jan 2014 13:01]
the cupu
Software version: 5.6.11 - MySQL Community Server (GPL)
[28 Jan 2014 13:42]
Peter Laursen
The Wiki references Standard SQL. MySQL does not conform with the standard in this respect. MySQL documentation at http://dev.mysql.com/doc/refman/5.6/en/create-table-foreign-keys.html: RESTRICT: Rejects the delete or update operation for the parent table. Specifying RESTRICT (or NO ACTION) is the same as omitting the ON DELETE or ON UPDATE clause. NO ACTION: A keyword from standard SQL. In MySQL, equivalent to RESTRICT. The MySQL Server rejects the delete or update operation for the parent table if there is a related foreign key value in the referenced table. Some database systems have deferred checks, and NO ACTION is a deferred check. In MySQL, foreign key constraints are checked immediately, so NO ACTION is the same as RESTRICT. .. so it really does not matter very much if I understand. There is no difference between NO ACTION and RESTRICT in MySQL. So what you are reporting is close to cosmetical IMO (if I understand). Peter (not a MySQL/Oracle person)
[28 Jan 2014 14:33]
the cupu
how about sync with any source ? i think mysql WB not only for MYSQL there is another source for SQLdatabase and that another source have a different between restrict and no action
[9 Feb 2014 12:48]
the cupu
6.0.9 still same problem
[12 Feb 2014 15:59]
Marcin Szalowicz
Thank you for the bug report. As mentioned in the MySQL docs, there is no difference in behaviour between NO ACTION and RESTRICT in MySQL, so making the change would have no effect. However, we will fix the problem in WB to avoid confusion.
[12 Feb 2014 16:11]
Peter Laursen
Also see http://bugs.mysql.com/bug.php?id=71669 I am not convinced that the problem occurring in the client/Workbench is not in reality a server issue. Peter (not a MySQL/Oracle person)
[12 Mar 2014 1:11]
Philip Olson
Fixed as of the upcoming MySQL Workbench 6.1.3 release, and here's the changelog entry: MySQL Workbench will now see the "NO ACTION" and "RESTRICT" referential action options as two different options. Thank you for the bug report.