table alias - Mailing list pgsql-hackers-win32

From Bob.Henkel@hartfordlife.com
Subject table alias
Date
Msg-id OF8419ACC6.4CA2F2E6-ON86256E9F.004A3F8C-86256E9F.004ABECC@hartfordlife.com
Whole thread Raw
Responses Re: table alias
List pgsql-hackers-win32



I'm running a binary snapshot from two days ago.  When I run a update with
aliases the SQL doesn't work.  The alias does work if I run just a select
statement however.  Is this suppose to be like this.  If not is it only
broken in the 7.5 WIN32 build?

When I try an update like the one below I get the error that follows.

update report_base s
set s.sql_base = 'select * from test_data where'
where s.report_base_id = 1;

ERROR:  syntax error at or near "s" at character 20

The SQL with the aliase taken out works fine as seen below.
update report_base
set sql_base = 'select * from test_data where'
where report_base_id = 1;

Query returned successfully: 1 rows affected, 282 ms execution time.

Thanks,
Bob








*************************************************************************
PRIVILEGED AND CONFIDENTIAL: This communication, including attachments, is for the exclusive use of addressee and may
containproprietary, confidential and/or privileged information.  If you are not the intended recipient, any use,
copying,disclosure, dissemination or distribution is strictly prohibited.  If you are not the intended recipient,
pleasenotify the sender immediately by return e-mail, delete this communication and destroy all copies. 
*************************************************************************


pgsql-hackers-win32 by date:

Previous
From: "Cyril VELTER"
Date:
Subject: Win32 binaries test / pg_dump problem
Next
From: "Merlin Moncure"
Date:
Subject: Re: table alias