From: Euler Taveira <euler@timbira.com.br>
To: Andreas 'ads' Scherbaum <adsmail@wars-nicht.de>
To: PostgreSQL mailing lists <pgsql-hackers@postgresql.org>
Subject: Re: to_date_valid()
Date: Sat, 2 Jul 2016 22:32:36 -0300
Message-ID: <dcdebc73-ffdd-13a3-d6cd-73e1944a066b@timbira.com.br> (raw)
In-Reply-To: <57786490.9010201@wars-nicht.de>
References: <57786490.9010201@wars-nicht.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On 02-07-2016 22:04, Andreas 'ads' Scherbaum wrote:
> The attached patch adds a new function "to_date_valid()" which will
> validate the date and return an error if the input and output date do
> not match. Tests included, documentation update as well.
>
Why don't you add a third parameter (say, validate = true | false)
instead of creating another function? The new parameter could default to
false to not break compatibility.
--
Euler Taveira Timbira - http://www.timbira.com.br/
PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: euler@timbira.com.br, adsmail@wars-nicht.de
Subject: Re: to_date_valid()
In-Reply-To: <dcdebc73-ffdd-13a3-d6cd-73e1944a066b@timbira.com.br>
References: <57786490.9010201@wars-nicht.de> <dcdebc73-ffdd-13a3-d6cd-73e1944a066b@timbira.com.br>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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