MDB2_Driver__pgsql problem
| From: | Martin Marques | Date: | Tue, 19 Sep 2006 20:55:04 +0000 |
| Subject: | MDB2_Driver__pgsql problem | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-25171@lists.php.net to get a copy of this message | ||
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?
--
---------------------------------------------------------
Lic. Martín Marqués | SELECT 'mmarques' ||
Centro de Telemática | '@' || 'unl.edu.ar';
Universidad Nacional | DBA, Programador,
del Litoral | Administrador
---------------------------------------------------------