Re: Change in casting behavior?

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Thomas Swan <tswan-lst(at)ics(dot)olemiss(dot)edu>
Cc: Postgresql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Change in casting behavior?
Date: 2002-02-16 01:35:49
Message-ID: Pine.LNX.4.30.0202152033550.681-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Thomas Swan writes:

> select (random( )*10)::varchar(4)
> worked in 7.1.3
>
> fails in 7.2
>
> ERROR: value too long for type character varying(4)

Say what you really mean:

select substring(random()*10 for 4);

--
Peter Eisentraut peter_e(at)gmx(dot)net

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2002-02-16 01:43:11 Re: Maintaining the list of release changes
Previous Message Thomas Swan 2002-02-16 00:49:33 Change in casting behavior?