The following bug has been logged online:

Bug reference:      1582
Logged by:          Eric McGough
Email address:      [EMAIL PROTECTED]
PostgreSQL version: 8.0.1
Operating system:   Solaris 8
Description:        boolean DEFAULT TRUE results in FALSE for NULL values
Details: 

-- This table and COPY command should result in all
-- three columns defaulting to TRUE based on NULL
-- inputs, but they all result in FALSE. Not sure why?

CREATE TABLE my_table (
        field1 boolean DEFAULT TRUE,
        field2 boolean DEFAULT TRUE,
        field3 boolean DEFAULT TRUE
);

COPY my_table FROM STDIN WITH DELIMITER AS '|';
\N|\N|\N
\.

using http://www.sunfreeware.com complied postgres
postgresql-8.0.1-sol8-sparc-local

on SunOS cawncknms 5.8 Generic_117350-11 sun4u sparc SUNW,Ultra-Enterprise

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to [EMAIL PROTECTED] so that your
      message can get through to the mailing list cleanly

Reply via email to