Re: ecmascript 5 DATESTYLE - Mailing list pgsql-hackers

From Robert Haas
Subject Re: ecmascript 5 DATESTYLE
Date
Msg-id AANLkTingZMm8py0t0RDmiin0p2EyJJqVQ9-LWPL6bPPV@mail.gmail.com
Whole thread Raw
In response to Re: ecmascript 5 DATESTYLE  (Ben Hockey <neonstalwart@gmail.com>)
List pgsql-hackers
On Thu, May 20, 2010 at 9:25 PM, Ben Hockey <neonstalwart@gmail.com> wrote:
> thanks for looking into adding this feature.  custom formats for parsing and
> formatting of dates would certainly be the better option if it can be done
> securely.

Well, Pavel expressed a concern about SQL injection, but I can't see
why that would be a problem.  If having multiple date formats is
insecure, then we are already insecure.  If it's not, then I don't see
why having user-definable formats would be any more insecure than
having formats from a fixed list.  In any case, I can't see the
connection to SQL injection - it seems like the worst case scenario is
that some client gets confused about what the date format is and some
dates get misinterpreted.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company


pgsql-hackers by date:

Previous
From: Florian Pflug
Date:
Subject: Re: Row-level Locks & SERIALIZABLE transactions, postgres vs. Oracle
Next
From: Robert Haas
Date:
Subject: Re: [RFC][PATCH]: CRC32 is limiting at COPY/CTAS/INSERT ... SELECT + speeding it up