From fc5daee43465ef8fccfbfeedf0a2f317e7adaf21 Mon Sep 17 00:00:00 2001 From: Jouni Ahto Date: Fri, 12 May 2000 03:02:14 +0000 Subject: Fixed all (?) remaining issues with InterBase 6 datatypes, especially with timestamp, date and time. Incombatible change: renamed constant IBASE_TIMESTAMP to IBASE_UNIXTIME. Incompatible change: renamed configuration directive ibase.timeformat to ibase.timestampformat. Added constants IBASE_TIMESTAMP, IBASE_DATE, IBASE_TIME. Added configuration directives ibase.dateformat and ibase.timeformat. ibase_timefmt() now takes an optional second argument specifying which format to change, default is IBASE_TIMESTAMP (for even a little backwards compatibility). --- ext/interbase/php_interbase.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'ext/interbase/php_interbase.h') diff --git a/ext/interbase/php_interbase.h b/ext/interbase/php_interbase.h index adbfa45b0f..00fb62d251 100644 --- a/ext/interbase/php_interbase.h +++ b/ext/interbase/php_interbase.h @@ -89,6 +89,10 @@ typedef struct { long allow_persistent; int le_blob, le_link, le_plink, le_result, le_query; char *default_user, *default_password; + char *timestampformat; + char *cfg_timestampformat; + char *dateformat; + char *cfg_dateformat; char *timeformat; char *cfg_timeformat; char *errmsg; @@ -143,11 +147,14 @@ typedef struct _php_ibase_varchar { enum php_interbase_option { PHP_IBASE_DEFAULT = 0, PHP_IBASE_TEXT = 1, - PHP_IBASE_TIMESTAMP = 2, + PHP_IBASE_UNIXTIME = 2, PHP_IBASE_READ = 4, PHP_IBASE_COMMITTED = 8, PHP_IBASE_CONSISTENCY = 16, - PHP_IBASE_NOWAIT = 32 + PHP_IBASE_NOWAIT = 32, + PHP_IBASE_TIMESTAMP = 64, + PHP_IBASE_DATE = 128, + PHP_IBASE_TIME = 256 }; #ifdef ZTS -- cgit v1.2.1