[drupal-devel] [bug] PostgreSQL fix
plj
drupal-devel at drupal.org
Fri Aug 5 17:32:55 UTC 2005
Issue status update for
http://drupal.org/node/28287
Post a follow up:
http://drupal.org/project/comments/add/28287
Project: Drupal
Version: cvs
Component: forum.module
Category: bug reports
Priority: normal
Assigned to: Anonymous
Reported by: plj
Updated by: plj
Status: patch (code needs review)
Attachment: http://drupal.org/files/issues/forum.module_5.patch (1.02 KB)
In addition to this [1] old bug there is another bug in cvs version of
forum.module, when the database in use is PostgreSQL. When forum
configuration page is accessed first time, Drupal attempts to create a
new vocabulary for forums:
INSERT INTO vocabulary (name, description, help, multiple, required,
hierarchy, relations, tags, weight, module, vid) VALUES ('Forums', '',
'', 0, 1, 1, 0, '', 0, 'forum', '1')
Unfortunately, this throws an 'Invalid input syntax for integer' error,
as no value is assigned for field 'tags'.
I've included a patch that should insert 0 into that field to avoid the
error, but I hope someone would review it, as I'm no expert in PHP and
thus unsure that I made it correctly. Only one row is affected.
[1] http://drupal.org/node/23499
plj
More information about the drupal-devel
mailing list