PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Database » MDB2 » Bug #8739

Make it possible to disable forcing a common date format

Details

Request #8739Make it possible to disable forcing a common date format
Submitted2006-09-19 21:23 UTC
Frommartin at bugs dot unl dot edu dot ar
Assignedlsmith
StatusClosed
PackageMDB2
PHP Version5.1.6
OSLinux
Roadmaps(Not assigned)

Comments

[2006-09-19 21:23 UTC] martin at bugs dot unl dot edu dot ar

Description:
------------
Every time a new connection is made MDB2 executes this on line 424:

if (!@pg_query($connection, "SET SESSION DATESTYLE = 'ISO'")) {

This changes the way dates are returned, which is really undesirable, especially if you are useing SQL like dates (dd/mm/yyyy) and you get back ISO (yyyy/mm/dd).

It would be nice if this could be configurable.