For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > October 2007 > cvs: php-src(PHP_5_3) /ext/pdo_firebird pdo_firebird.c









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: php-src(PHP_5_3) /ext/pdo_firebird pdo_firebird.c
Lars Westermann

2007-10-30, 7:02 pm

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-s...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;
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com