Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The query created by content_db_index_exists() in content.module is not valid SQL (according to the MySQL manual, the "SHOW INDEX" command does not have a WHERE clause).
This causes errors when I attempt to create ANY node reference field with CCK 6.x-2.5.
I feel that this needs to be fixed ASAP.
Comment | File | Size | Author |
---|---|---|---|
#2 | content_db_index_exists-mysql_4.patch | 950 bytes | GuyPaddock |
Comments
Comment #1
GuyPaddock CreditAttribution: GuyPaddock commentedCorrection, our server is MySQL 4.1.20, and it looks like the extended SHOW syntax that does support a WHERE clause was added in MySQL 5.
Comment #2
GuyPaddock CreditAttribution: GuyPaddock commentedThe attached patch should fix this issue.
Comment #3
markus_petrux CreditAttribution: markus_petrux commentedCould you please provide a patch in Unified diff format?
Comment #4
markus_petrux CreditAttribution: markus_petrux commentedCommitted an slight vairation of the patch to CVS (branches CCK2 and CCK3) - patch.
Thank you! :)