Why does this work?

From: "Ian Harding" <harding(dot)ian(at)gmail(dot)com>
To: "General PostgreSQL List" <pgsql-general(at)postgresql(dot)org>
Subject: Why does this work?
Date: 2007-06-15 18:56:06
Message-ID: 725602300706151156s5728b95es857de981e8aaa47b@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I accidentally formatted a string for tsearch before trying to cast it
to a date, and it worked!

select 'June&15&2007'::date
date
------------
2007-06-15
(1 row)

Is this a happy accident, or is it OK to count on it continuing to
work this way?

Thanks,

Ian

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Francisco Reyes 2007-06-15 19:01:35 Re: pg_restore out of memory
Previous Message Alvaro Herrera 2007-06-15 18:43:47 Re: vacuum and postgresql.conf settings