Re: Insane behaviour in 8.3.3 - Mailing list pgsql-sql

From Robert Edwards
Subject Re: Insane behaviour in 8.3.3
Date
Msg-id 4FDAE2FF.4080004@cs.anu.edu.au
Whole thread Raw
In response to Insane behaviour in 8.3.3  (Achilleas Mantzios <achill@matrix.gatewaynet.com>)
List pgsql-sql
On 14/06/12 18:39, Achilleas Mantzios wrote:

> dynacom=# SELECT id from items_tmp WHERE id=1261319 AND xid=currval('xadmin_xid_seq');
>   id
> ----
> (0 rows)
> dynacom=# -- THIS IS INSANE

Have you tried:

SELECT id from items_tmp WHERE id=1261319 AND 
xid=currval('xadmin_xid_seq'::text)

or even:

SELECT id from items_tmp WHERE id=1261319 AND 
xid=currval(('xadmin_xid_seq'::text)::regclass)

Bob Edwards.


pgsql-sql by date:

Previous
From: Richard Huxton
Date:
Subject: Re: Insane behaviour in 8.3.3
Next
From: Achilleas Mantzios
Date:
Subject: Re: Insane behaviour in 8.3.3