Re: Re: MDB2_Driver__pgsql problem
| From: | Martin Marques | Date: | Tue, 19 Sep 2006 21:24:05 +0000 |
| Subject: | Re: Re: MDB2_Driver__pgsql problem | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-25174@lists.php.net to get a copy of this message | ||
Bug request submited.
On Tue, 19 Sep 2006 22:59:24 +0200, Lukas Kahwe Smith <lsmith@php.net> wrote:
> Martin Marques wrote:
>> I was trying to figure out why my queries to my DB have me
>> the dates in wrong format (yyyy-mm-dd instead of dd/mm/yyyy),
>> and I found that after making the conection to the PostgreSQL
>> database, MDB2 does this query in line 423 of MDB2/Driver/pgsql.php:
>>
>> SET SESSION DATESTYLE = 'ISO'
>>
>> Now, this is changing the DATESTYLE I use, which is SQL, and
>> I just don't get why it's done.
>>
>> Is there a reason for it, besides executing a query to see if the
>> connection was establish correctly?
>
> This is to make the the date format portable across drivers. Maybe I
> should make it possible to turn this off via an option. File a feature
> request if you feel it should be possible.
>
> regards,
> Lukas
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
---------------------------------------------------------
Lic. Martín Marqués | SELECT 'mmarques' ||
Centro de Telemática | '@' || 'unl.edu.ar';
Universidad Nacional | DBA, Programador,
del Litoral | Administrador
---------------------------------------------------------