query: INSERT INTO aggregator_feed (title, url, refresh, block, description) VALUES ('Brenda''s Blog', 'http://coffee.geek.nz/rss.xml', 900, 5, '') in /home/brenda/projects/drupal/HEAD/modules/aggregator/aggregator.module on line 371.
pg_query(): Query failed: ERROR: null value in column "image" violates not-null constraint in /home/brenda/projects/drupal/HEAD/includes/database.pgsql.inc on line 155.
schema for this column is
'image' => array('type' => 'text', 'not null' => TRUE, 'size' => 'big'),
needs a default it seems.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | aggregator_feed_insert-174348-4.patch | 858 bytes | chx |
| #1 | aggregator.schema.patch | 1.16 KB | Shiny |
Comments
Comment #1
Shiny commentedpatch attached.
Comment #2
Shiny commentedComment #3
Shiny commentedalas, mysql doesn't support default values on text fields
Comment #4
chx commentedIt's a lot simpler to fix the insert than the schema.
Comment #5
johnhelen commentedThe patch is applied successfully with php 5.1.6, postgres 7.4 and drupal 6.0-dev
Comment #6
Shiny commentedbug fixed for php5, pg8.2
Comment #7
gábor hojtsyThanks, committed.
Comment #8
(not verified) commented