Re: Newbie question about casting literals - oracle/postgres

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Naeem Bari <naeem(dot)bari(at)agilissystems(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Newbie question about casting literals - oracle/postgres
Date: 2004-10-27 18:09:43
Message-ID: 20041027180943.GD5394@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Oct 26, 2004 at 08:24:56PM -0500, Naeem Bari wrote:

> The only way this works in postgres is by casting 'GREEN' to text using
> 'GREEN'::text
>
> The problem is then this does not work with oracle.

So use a standards-conformant cast, like

cast('GREEN' as text)

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Those who use electric razors are infidels destined to burn in hell while
we drink from rivers of beer, download free vids and mingle with naked
well shaved babes." (http://slashdot.org/comments.pl?sid=44793&cid=4647152)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Eric 2004-10-27 18:14:25 QMail
Previous Message Martijn van Oosterhout 2004-10-27 18:09:32 Re: Reasoning behind process instead of thread based