lwe             Tue Oct 30 18:04:26 2007 UTC

  Modified files:              
    /php-src/ext/pdo_firebird   pdo_firebird.c 
  Log:
  [DOC] Added 3 firebird specific attributes that can be set via
  PDO::setAttribute() to control formatting of date/timestamp columns:
  PDO::FB_ATTR_DATE_FORMAT, PDO::FB_ATTR_TIME_FORMAT and
  PDO::FB_ATTR_TIMESTAMP_FORMAT.  These attributes are strftime
  format strings, and operate in the same way as the ibase.dateformat,
  ibase.timeformat and ibase.timestampformat ini options.
  (related to bug #36128, Interbase PDO)
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_firebird/pdo_firebird.c?r1=1.8&r2=1.9&diff_format=u
Index: php-src/ext/pdo_firebird/pdo_firebird.c
diff -u php-src/ext/pdo_firebird/pdo_firebird.c:1.8 
php-src/ext/pdo_firebird/pdo_firebird.c:1.9
--- php-src/ext/pdo_firebird/pdo_firebird.c:1.8 Thu Sep 27 18:28:41 2007
+++ php-src/ext/pdo_firebird/pdo_firebird.c     Tue Oct 30 18:04:25 2007
@@ -16,7 +16,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: pdo_firebird.c,v 1.8 2007/09/27 18:28:41 dmitry Exp $ */
+/* $Id: pdo_firebird.c,v 1.9 2007/10/30 18:04:25 lwe Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -44,7 +44,7 @@
        NULL,
        NULL,
        PHP_MINFO(pdo_firebird),
-       "0.2",
+       "0.3",
        STANDARD_MODULE_PROPERTIES
 };
 /* }}} */
@@ -55,6 +55,10 @@
 
 PHP_MINIT_FUNCTION(pdo_firebird) /* {{{ */
 {
+       REGISTER_PDO_CLASS_CONST_LONG("FB_ATTR_DATE_FORMAT", (long) 
PDO_FB_ATTR_DATE_FORMAT);
+       REGISTER_PDO_CLASS_CONST_LONG("FB_ATTR_TIME_FORMAT", (long) 
PDO_FB_ATTR_TIME_FORMAT);
+       REGISTER_PDO_CLASS_CONST_LONG("FB_ATTR_TIMESTAMP_FORMAT", (long) 
PDO_FB_ATTR_TIMESTAMP_FORMAT);
+
        php_pdo_register_driver(&pdo_firebird_driver);
 
        return SUCCESS;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to