Re: Cannot declare record members NOT NULL

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Cultural Sublimation <cultural_sublimation(at)yahoo(dot)com>
Cc: Martijn van Oosterhout <kleptog(at)svana(dot)org>, pgsql-general(at)postgresql(dot)org
Subject: Re: Cannot declare record members NOT NULL
Date: 2007-09-12 23:03:43
Message-ID: 20070912230343.GA24626@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Cultural Sublimation wrote:
> Hi,
>
> > I presume you mean that the server is saying the column can be NULL,
> > not that it is actually NULL, since:
>
> Yeah, that is the correct semantics: "it can be NULL". It does make
> a world of difference on the client side, because an "int4 never NULL"
> is a different type from "int4 possibly NULL". The type mismatch
> means the program won't even compile.

Interesting. What language are you using?

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message volunteer 2007-09-12 23:06:41 Re: an other provokative question??
Previous Message Andrej Ricnik-Bay 2007-09-12 23:03:10 Re: an other provokative question??