Closed (fixed)
Project:
Content Construction Kit (CCK)
Version:
4.7.x-1.3
Component:
General
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Feb 2007 at 10:27 UTC
Updated:
20 Feb 2007 at 12:45 UTC
Jump to comment: Most recent file
Comments
Comment #1
yched commentedpatch missing :-)
plus : can you describe what is the problem that gets fixed ?
Comment #2
jaydub commentedah yes adding the patch would have helped...The problem that gets fixed is the success of running the update for CCK. The #9 update adds the column display_settings to the node_field_instance table. The MySQL add column is done with a straight SQL call. The PostgreSQL add column is done using the core Drupal update.php db_add_column function.
This function takes as part of its arguments an array of attributes for the added column. In this particular case, the attributes for the added column are NOT NULL and DEFAULT of an empty string (''). The patch addresses the fact that sending an array element of key => '' will result in the value of that array literally being an empty string rather than that desired value of ''. So changing the array element to key => "''" fixes this problem.
Basically you just gotta look at how the db_add_column function operates and it will become clear...
Comment #3
yched commentedQuite right. Committed - thanks !
Comment #4
(not verified) commented