Re: Cannot declare record members NOT NULL

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Cultural Sublimation <cultural_sublimation(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Cannot declare record members NOT NULL
Date: 2007-09-12 22:08:53
Message-ID: 20070912220851.GB25528@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Sep 12, 2007 at 02:22:46PM -0700, Cultural Sublimation wrote:
> SELECT movie_id, movie_name FROM get_movies ();
> => returns a SETOF of (int4 NULL, text NULL)

I presume you mean that the server is saying the column can be NULL,
not that it is actually NULL, since:

> One note: I know this information because the client is using the
> "describe" feature of Postgresql to retrieve the types returned
> by a statement.

The describe clearly can't tell if the result is always going to be
NULL or not.

Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Broersma Jr 2007-09-12 22:18:05 Re: Cannot declare record members NOT NULL
Previous Message Cultural Sublimation 2007-09-12 22:08:13 Re: Cannot declare record members NOT NULL