Re: explicit cast error

From: Joe Conway <mail(at)joeconway(dot)com>
To: Lynn David Newton <lynn(dot)newton(at)cox(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: explicit cast error
Date: 2002-07-05 16:52:57
Message-ID: 3D25CEE9.2060006@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Lynn David Newton wrote:
> insert into abc
> (c2, lab, dlab, bdigits) values
> (5, 'somestring', 'abc123', 3410999762);
>
> psql returns to me this message:
>
> psql: ... ERROR: Unable to identify an operator '=' for types 'int4' and 'text'
> You will have to retype this query using an explicit cast
>

Try:

insert into abc
(c2, lab, dlab, bdigits) values
(5, 'somestring', 'abc123', 3410999762::bigint);

or even:

insert into abc
(c2, lab, dlab, bdigits) values
(5, 'somestring', 'abc123', '3410999762');

HTH,

Joe

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Francisco J Reyes 2002-07-05 16:57:20 Re:
Previous Message Nigel J. Andrews 2002-07-05 16:48:38 Re: I am being interviewed by OReilly