Closed (duplicate)
Project:
Comment Notify
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Aug 2009 at 05:16 UTC
Updated:
7 Nov 2009 at 01:00 UTC
I'm seeing the following error:
query: INSERT INTO comment_notify (cid, notify, notify_hash) values (321, 0, 'eeedf4cd9fdd0132316f3ff46bbd6969') in /var/www/dev/sites/all/modules/comment_notify/comment_notify.module on line 271.
pg_query() [function.pg-query]: Query failed: ERROR: null value in column "notified" violates not-null constraint in /var/www/dev/includes/database.pgsql.inc on line 139.
This is because the column notified is set as NOT NULL but with no default value - in mysql the default is automatically 0, but in postgres it has no default.
Patch is attached
| Comment | File | Size | Author |
|---|---|---|---|
| commit-8b53250.patch | 530 bytes | rjmackay |
Comments
Comment #1
gregglesThanks - this has been fixed in #410358: database scheme update code (PgSQL).