Re: Interesting abilities of substring

From: Kenneth Downs <ken(at)secdat(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Interesting abilities of substring
Date: 2007-08-09 17:30:07
Message-ID: 46BB4F1F.8000607@secdat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
> Kenneth Downs <ken(at)secdat(dot)com> writes:
>
>> Basically, it "knows what you mean" when you do substrings on dates and
>> numbers, doing an implicit cast for you.
>>
>
> Implicit casts to text are evil, and are mostly going to be gone in 8.3.
> So try not to rely on this behavior ...
>

Based on general principle, or on specific bad things like unexpected or
ill-defined results?

> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
>

--
Kenneth Downs
Secure Data Software, Inc.
www.secdat.com www.andromeda-project.org
631-689-7200 Fax: 631-689-0527
cell: 631-379-0010

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-08-09 18:13:37 Re: Bytea question with \208
Previous Message Louis-David Mitterrand 2007-08-09 17:27:55 timestamp skew during 7.4 -> 8.2 upgrade