cvs: php-src(PHP_5_3) /ext/pdo_firebird php_pdo_firebird_int.h
| From: | Lars Westermann | Date: | Tue, 30 Oct 2007 16:26:26 +0000 |
| Subject: | cvs: php-src(PHP_5_3) /ext/pdo_firebird php_pdo_firebird_int.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-46824@lists.php.net to get a copy of this message | ||
lwe Tue Oct 30 16:26:26 2007 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/pdo_firebird php_pdo_firebird_int.h
Log:
- Added default timestamp format definitions (ISO 8601) (related to bug #36128, Interbase PDO)
http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_firebird/php_pdo_firebird_int.h?r1=1.10.2.1.2.1&r2=1.10.2.1.2.1.2.1&diff_format=u
Index: php-src/ext/pdo_firebird/php_pdo_firebird_int.h
diff -u php-src/ext/pdo_firebird/php_pdo_firebird_int.h:1.10.2.1.2.1
php-src/ext/pdo_firebird/php_pdo_firebird_int.h:1.10.2.1.2.1.2.1
--- php-src/ext/pdo_firebird/php_pdo_firebird_int.h:1.10.2.1.2.1 Mon Jan 1 09:36:04 2007
+++ php-src/ext/pdo_firebird/php_pdo_firebird_int.h Tue Oct 30 16:26:25 2007
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_pdo_firebird_int.h,v 1.10.2.1.2.1 2007/01/01 09:36:04 sebastian Exp $ */
+/* $Id: php_pdo_firebird_int.h,v 1.10.2.1.2.1.2.1 2007/10/30 16:26:25 lwe Exp $ */
#ifndef PHP_PDO_FIREBIRD_INT_H
#define PHP_PDO_FIREBIRD_INT_H
@@ -31,6 +31,10 @@
#define PDO_FB_DIALECT 3
+#define PDO_FB_DEF_DATE_FMT "%Y-%m-%d"
+#define PDO_FB_DEF_TIME_FMT "%H:%M:%S"
+#define PDO_FB_DEF_TIMESTAMP_FMT PDO_FB_DEF_DATE_FMT " " PDO_FB_DEF_TIME_FMT
+
#define SHORT_MAX (1 << (8*sizeof(short)-1))
#if SIZEOF_LONG == 8
@@ -73,6 +77,11 @@
/* the last error that didn't come from the API */
char const *last_app_error;
+ /* date and time format strings, can be set by the set_attribute method */
+ char *date_format;
+ char *time_format;
+ char *timestamp_format;
+
} pdo_firebird_db_handle;
@@ -115,6 +124,12 @@
void _firebird_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, char const *file, long line TSRMLS_DC);
+enum {
+ PDO_FB_ATTR_DATE_FORMAT = PDO_ATTR_DRIVER_SPECIFIC,
+ PDO_FB_ATTR_TIME_FORMAT,
+ PDO_FB_ATTR_TIMESTAMP_FORMAT,
+};
+
#endif /* PHP_PDO_FIREBIRD_INT_H */
/*