Re: combination of 'textcat' and 'interval' in 7.2. - Mailing list pgsql-sql

From Peter Eisentraut
Subject Re: combination of 'textcat' and 'interval' in 7.2.
Date
Msg-id Pine.LNX.4.30.0202201118500.684-100000@peter.localdomain
Whole thread Raw
In response to combination of 'textcat' and 'interval' in 7.2.  (Bhuvan A <bhuvansql@yahoo.com>)
List pgsql-sql
Bhuvan A writes:

>
> In my plpgsql functions, i did use(in 7.1.2)
> SELECT INTO <variable> interval(textcat (4, '' hours''));
>
> But now, i do use (in 7.2)
> SELECT INTO <variable> cast (textcat (4, '' hours'') as interval);
>
> and it works.
>
> is this a permanent fix? will it work in earlier and future releases?

Standard syntax is

cast('4' || ' hours' as interval)

-- 
Peter Eisentraut   peter_e@gmx.net



pgsql-sql by date:

Previous
From: Thomas Good
Date:
Subject: Re: Issues w/ 7.1 to 7.2 upgrade.
Next
From: clayton cottingham
Date:
Subject: Re: comparision chart