Re: to_date_valid()

From: Euler Taveira <euler(at)timbira(dot)com(dot)br>
To: Andreas 'ads' Scherbaum <adsmail(at)wars-nicht(dot)de>, PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: to_date_valid()
Date: 2016-07-03 01:32:36
Message-ID: dcdebc73-ffdd-13a3-d6cd-73e1944a066b@timbira.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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, Suporte 24x7 e Treinamento

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Fetter 2016-07-03 02:12:21 Re: Column COMMENTs in CREATE TABLE?
Previous Message Craig Ringer 2016-07-03 01:07:40 Re: Docs, backups, and MS VSS