Re: MDB2_Driver__pgsql problem
| From: | Lukas Kahwe Smith | Date: | Tue, 19 Sep 2006 20:59:24 +0000 |
| Subject: | Re: MDB2_Driver__pgsql problem | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-25172@lists.php.net to get a copy of this message | ||
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