For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > October 2007 > cvs: php-src /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 /ext/pdo_firebird pdo_firebird.c
Lars Westermann

2007-10-30, 7:02 pm

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







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

Copyright 2008 codecomments.com