pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
combination of 'textcat' and 'interval' in 7.2.
2+ messages / 2 participants
[nested] [flat]

* combination of 'textcat' and 'interval' in 7.2.
@ 2002-02-20 12:02  Bhuvan A <bhuvansql@yahoo.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Bhuvan A @ 2002-02-20 12:02 UTC (permalink / raw)
  To: pgsql-sql


hi,

just a day back, i did upgrade to 7.2(from 7.1.2).

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?
Would like to get some links on migration of plpgsql functions from
7.1.x to 7.2?

Regards,
Bhuvaneswar.




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: combination of 'textcat' and 'interval' in 7.2.
@ 2002-02-20 16:19  Peter Eisentraut <peter_e@gmx.net>
  parent: Bhuvan A <bhuvansql@yahoo.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Peter Eisentraut @ 2002-02-20 16:19 UTC (permalink / raw)
  To: Bhuvan A <bhuvansql@yahoo.com>; +Cc: 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




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2002-02-20 16:19 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-02-20 12:02 combination of 'textcat' and 'interval' in 7.2. Bhuvan A <bhuvansql@yahoo.com>
2002-02-20 16:19 ` Peter Eisentraut <peter_e@gmx.net>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox