Re: nextval::text

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: John Smith <john_smith_45678(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: nextval::text
Date: 2003-03-05 08:57:11
Message-ID: 20030305085711.GA14268@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Mar 04, 2003 at 10:54:34PM -0800, John Smith wrote:
>
> I was just wondering why in the generated schema nextval is cast to text rather than int?

I think you're misreading. It's the string being passed to nextval that is
being cast to text, not the return value.

> John
>
> CREATE TABLE x (
> id integer DEFAULT nextval('"x_id_seq"'::text) NOT NULL,
> name character varying(30) NOT NULL
> );
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, and more
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Support bacteria! They're the only culture some people have.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jean-Christian Imbeault 2003-03-05 09:01:50 Re: Demande d'information
Previous Message Justin Clift 2003-03-05 07:37:51 Re: Mailing lists still points to a non-existent page