Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Not a Bug
-
None
-
None
Attachments
Issue Links
- relates to
-
MDEV-31086 MODIFY COLUMN can break FK constraints, and lead to unrestorable dumps
-
- Closed
-
-
MDEV-31987 Cannot disable FOREIGN_KEY_CHECKS anymore for converting character set
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Link |
This issue relates to |
Link |
This issue relates to |
Status | Open [ 1 ] | Needs Feedback [ 10501 ] |
Comment |
[ hello -
first off, +THANK YOU+ for your patience with me. it appears when switching from 10.5.13 to 10.5.22, there is a new rule being enforced that was not previously enforced. this line stopped working when i upgraded to 10.5.22: ALTER TABLE `stimwordPosition` MODIFY COLUMN `stimwordPositionAutoIncr` MEDIUMINT(10) UNSIGNED NOT NULL AUTO_INCREMENT AFTER `updatedAt` so i changed *UNSIGNED *to *SIGNED *and that resolved my issue: ALTER TABLE `stimwordPosition` MODIFY COLUMN `stimwordPositionAutoIncr` MEDIUMINT(10) SIGNED NOT NULL AUTO_INCREMENT AFTER `updatedAt` this was of course past carelessness on my part, but this might cause others some issues, assuming there is anybody as careless as me. ] |
Assignee | Marko Mäkelä [ marko ] | |
Status | Needs Feedback [ 10501 ] | Open [ 1 ] |
issue.field.resolutiondate | 2023-11-17 06:44:46.0 | 2023-11-17 06:44:45.582 |
Component/s | Data Definition - Alter Table [ 10114 ] | |
Fix Version/s | N/A [ 14700 ] | |
Resolution | Not a Bug [ 6 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
i have a procedure i run quite regularly that uses this syntax:
SET FOREIGN_KEY_CHECKS=0;
but today when i upgraded from 10.5.13 to
Server version: 10.5.22-MariaDB MariaDB Server
suddenly i keep getting this error:
ERROR 1833 (HY000) at line 9: Cannot change column 'xx': used in a foreign key constraint 'xx' of table 'xx.xx'
this is how i solved the issue several years ago as per stackexchange
so today i tried this stackoverflow suggestion instead:
SET FOREIGN_KEY_CHECKS = 0;
SET GLOBAL FOREIGN_KEY_CHECKS=0;
and that did not fix it.
any thoughts or suggestions? has anybody else experienced that FOREIGN_KEY_CHECKS does not appear to disable anymore?