Re: SQL parse error
| От | Tom Lane | 
|---|---|
| Тема | Re: SQL parse error | 
| Дата | |
| Msg-id | 3453.976655824@sss.pgh.pa.us обсуждение исходный текст | 
| Ответ на | RE: SQL parse error (Borek Lupoměský <borekl@volny.cz>) | 
| Ответы | Re: SQL parse error | 
| Список | pgsql-sql | 
Borek Lupoměský <borekl@volny.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
		
	В списке pgsql-sql по дате отправления: