Re: SQL parse error

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Borek Lupoměský <borekl(at)volny(dot)cz>
Cc: Francis Solomon <francis(at)stellison(dot)co(dot)uk>, pgsql-sql(at)postgresql(dot)org
Subject: Re: SQL parse error
Date: 2000-12-12 21:17:04
Message-ID: 3453.976655824@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

=?ISO-8859-2?Q?Borek_Lupom=ECsk=FD?= <borekl(at)volny(dot)cz> writes:
> On Tue, 12 Dec 2000, Francis Solomon wrote:
FS> What version of PostgreSQL are you using? This works fine for me on
FS> 7.02. Time to update, maybe?

> Does not seem to be the case...

> ld01ad02:~$ rpm -q postgresql
> postgresql-7.0.2-2

I can't duplicate the problem either. I tried:

play=> create table out2cp(cp varchar(6));
CREATE
play=> insert into out2cp values('3182.1');
INSERT 405833 1
play=> insert into out2cp values('3182.2');
INSERT 405834 1
play=> select substring(cp from 1 for 4)::int4 from out2cp;
?column?
----------
3182
3182
(2 rows)

Does anyone else see a failure with this? If so what platform are you
on, and what build of Postgres are you using?

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Borek Lupoměský 2000-12-12 21:57:20 Re: SQL parse error
Previous Message Jie Liang 2000-12-12 18:36:03 Re: Foreign key constraint