Closed (fixed)
Project:
Drupal core
Version:
x.y.z
Component:
block.module
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Feb 2005 at 13:31 UTC
Updated:
26 Jul 2005 at 01:13 UTC
Jump to comment: Most recent file
Comments
Comment #1
Philippe commentedhere's a patch
Comment #2
andremolnar commentedChanging Status to patch.
I guess we didn't catch this - the field wasn't orginally called types. Good eye.
andre
Comment #3
dries commentedI suggest we name this field 'nodes'. Also, we'll need an upgrade path for those who are running CVS HEAD.
Comment #4
jonbob commentedI'm a bit confused by this. The word "types" doesn't show up here:
http://dev.mysql.com/doc/mysql/en/reserved-words.html
Comment #5
andremolnar commentedI remembered seeing it here: http://drupal.org/node/2497 If this is incorrect, then the documentation needs to be changed.
But all in all, nodes isn't a bad idea - I can submit a patch along with the upgrade path if 'types' is indeed a reserved word in either mySQL or pgSQL.
andre
Comment #6
ax commented"TYPES" /is/ a reserved word in mysql 4.1.0 and 4.1.1. it doesn't show up at http://dev.mysql.com/doc/mysql/en/reserved-words.html because it isn't reserved anymore since some point release later. it isn't even documented in the mysql changelog that it has ever been a reserved word ...
once again the suggestion to get rid of sql reserved words issues once and for all
Comment #7
andremolnar commentedI'll submit a patch later today to use the word 'nodes' in block - along with the database upgrade path.
andre
Comment #8
andremolnar commentedHere is the patch to block.module
Comment #9
andremolnar commentedAnd the db files and upgrade path.
Comment #10
drummThis column has been removed by http://drupal.org/node/21353. See differences at http://cvs.drupal.org/viewcvs/drupal/drupal/database/database.mysql?r1=1....