Re: nextval::text

From: Dennis Gearon <gearond(at)cvc(dot)net>
To: pgsql-general(at)postgresql(dot)org, John Smith <john_smith_45678(at)yahoo(dot)com>
Subject: Re: nextval::text
Date: 2003-03-05 16:12:33
Message-ID: 3YRL73WU32541ZT2Y2X31NMRP0995GA.3e6621f1@cal-lab
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Because that's the name of the sequence, not the value coming out of the sequence.

3/4/2003 10:54:34 PM, John Smith <john_smith_45678(at)yahoo(dot)com> wrote:

>
>
> Date: Tue, 4 Mar 2003 22:54:34 -0800 (PST)
>
> From: John Smith <john_smith_45678(at)yahoo(dot)com>
> Subject:[GENERAL] nextval::text
> To: pgsql-general(at)postgresql(dot)org
>
>
>
>
> I was just wondering why in the generated schema nextval is cast to text
> rather than int?
>
>
> 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dennis Gearon 2003-03-05 16:13:55 Delayed constraints
Previous Message Peter Alberer 2003-03-05 16:02:42 Difficult query