[MDEV-27583] InnoDB uses different constants for FK cascade error message in SQL vs error log Created: 2022-01-23 Updated: 2022-02-17 Resolved: 2022-02-17 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.2, 10.3, 10.4, 10.5, 10.6, 10.7 |
| Fix Version/s: | 10.2.44, 10.3.35, 10.4.25, 10.5.16, 10.6.8, 10.7.4, 10.8.3 |
| Type: | Bug | Priority: | Trivial |
| Reporter: | Elena Stepanova | Assignee: | Marko Mäkelä |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
The message returned to the query uses DICT_FK_MAX_RECURSIVE_LOAD (20):
The message written in the error log uses FK_MAX_CASCADE_DEL (15):
The latter seems correct. |
| Comments |
| Comment by Marko Mäkelä [ 2022-02-17 ] |
|
Thank you. The DICT_FK_MAX_RECURSIVE_LOAD (20) only applies to loading table definitions, while FK_MAX_CASCADE_DEL (15) is what matters here. I see that the test is only inserting 16 records, so it can only possibly hit the FK_MAX_CASCADE_DEL but not DICT_FK_MAX_RECURSIVE_LOAD (which to my understanding would require creating 20 foreign key constraints, while the test only creates one). |