diff options
| author | Ard Biesheuvel <abies@php.net> | 2004-06-12 16:07:52 +0000 |
|---|---|---|
| committer | Ard Biesheuvel <abies@php.net> | 2004-06-12 16:07:52 +0000 |
| commit | c8c0ddb73dd0dd0439124249401cfc08ef369c60 (patch) | |
| tree | a656199a6a8fc7ed90ba3c965178b68f4e1cab77 /ext/pdo_firebird/php_pdo_firebird_int.h | |
| parent | 1fb48b50918a4460a653351e36f6b669c522e9ad (diff) | |
| download | php-git-c8c0ddb73dd0dd0439124249401cfc08ef369c60.tar.gz | |
Removed dependency on regular interbase extension
Added support for all datatypes except BLOBs
Diffstat (limited to 'ext/pdo_firebird/php_pdo_firebird_int.h')
| -rw-r--r-- | ext/pdo_firebird/php_pdo_firebird_int.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/ext/pdo_firebird/php_pdo_firebird_int.h b/ext/pdo_firebird/php_pdo_firebird_int.h index 4e339b71b7..70bf160147 100644 --- a/ext/pdo_firebird/php_pdo_firebird_int.h +++ b/ext/pdo_firebird/php_pdo_firebird_int.h @@ -33,6 +33,19 @@ #define SHORT_MAX (1 << 8*sizeof(short)-1) +#if SIZEOF_LONG == 8 +# define LL_MASK l +# define LL_LIT(lit) lit ## L +#else +# ifdef PHP_WIN32 +# define LL_MASK "I64" +# define LL_LIT(lit) lit ## I64 +# else +# define LL_MASK "ll" +# define LL_LIT(lit) lit ## LL +# endif +#endif + /* Firebird API has a couple of missing const decls in its API */ #define const_cast(s) ((char*)(s)) @@ -61,10 +74,16 @@ typedef struct { /* the name of the cursor (if it has one) */ char name[32]; + /* the type of statement that was issued */ + char statement_type; + /* whether EOF was reached for this statement */ unsigned exhausted:1; - unsigned _reserved:31; + unsigned _reserved:23; + + /* allocated space to convert fields values to other types */ + char **fetch_buf; /* the input SQLDA */ XSQLDA *in_sqlda; |
