Re: to_date_valid() - Mailing list pgsql-hackers

From Euler Taveira
Subject Re: to_date_valid()
Date
Msg-id dcdebc73-ffdd-13a3-d6cd-73e1944a066b@timbira.com.br
Whole thread Raw
In response to to_date_valid()  (Andreas 'ads' Scherbaum <adsmail@wars-nicht.de>)
Responses Re: to_date_valid()  (Jaime Casanova <jaime.casanova@2ndquadrant.com>)
Re: to_date_valid()  (Craig Ringer <craig@2ndquadrant.com>)
List pgsql-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,
Suporte24x7 e Treinamento
 



pgsql-hackers by date:

Previous
From: Craig Ringer
Date:
Subject: Re: Docs, backups, and MS VSS
Next
From: David Fetter
Date:
Subject: Re: Column COMMENTs in CREATE TABLE?