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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Shiny’s picture

Assigned: Unassigned » Shiny
FileSize
1.16 KB

patch attached.

Shiny’s picture

Status: Active » Needs review
Shiny’s picture

Status: Needs review » Needs work

alas, mysql doesn't support default values on text fields

chx’s picture

Assigned: Shiny » chx
Status: Needs work » Needs review
FileSize
858 bytes

It's a lot simpler to fix the insert than the schema.

johnhelen’s picture

The patch is applied successfully with php 5.1.6, postgres 7.4 and drupal 6.0-dev

Shiny’s picture

Status: Needs review » Reviewed & tested by the community

bug fixed for php5, pg8.2

Gábor Hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, committed.

Anonymous’s picture

Status: Fixed » Closed (fixed)