lwe             Tue Oct 30 16:28:47 2007 UTC

  Modified files:              (Branch: PHP_5_3)
    /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.4.2.3.2.1.2.1&r2=1.4.2.3.2.1.2.2&diff_format=u
Index: php-src/ext/pdo_firebird/pdo_firebird.c
diff -u php-src/ext/pdo_firebird/pdo_firebird.c:1.4.2.3.2.1.2.1 
php-src/ext/pdo_firebird/pdo_firebird.c:1.4.2.3.2.1.2.2
--- php-src/ext/pdo_firebird/pdo_firebird.c:1.4.2.3.2.1.2.1     Thu Sep 27 
18:00:42 2007
+++ php-src/ext/pdo_firebird/pdo_firebird.c     Tue Oct 30 16:28:47 2007
@@ -16,7 +16,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: pdo_firebird.c,v 1.4.2.3.2.1.2.1 2007/09/27 18:00:42 dmitry Exp $ */
+/* $Id: pdo_firebird.c,v 1.4.2.3.2.1.2.2 2007/10/30 16:28:47 lwe Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -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