summaryrefslogtreecommitdiff
path: root/ext/pdo_firebird/php_pdo_firebird_int.h
diff options
context:
space:
mode:
authorArd Biesheuvel <abies@php.net>2004-06-12 03:09:48 (GMT)
committerArd Biesheuvel <abies@php.net>2004-06-12 03:09:48 (GMT)
commit493b89c3b1d898dca6b7a0964ff967d4e22d113f (patch)
tree473e491da59a8a83bdc98f086801a3e40e4af380 /ext/pdo_firebird/php_pdo_firebird_int.h
parent39a690321afe009752585e3ed42c169518df296f (diff)
downloadphp-493b89c3b1d898dca6b7a0964ff967d4e22d113f.tar.gz
Nearly complete implementation
No date/time fields yet ...
Diffstat (limited to 'ext/pdo_firebird/php_pdo_firebird_int.h')
-rw-r--r--ext/pdo_firebird/php_pdo_firebird_int.h25
1 files changed, 17 insertions, 8 deletions
diff --git a/ext/pdo_firebird/php_pdo_firebird_int.h b/ext/pdo_firebird/php_pdo_firebird_int.h
index da602e4..4e339b7 100644
--- a/ext/pdo_firebird/php_pdo_firebird_int.h
+++ b/ext/pdo_firebird/php_pdo_firebird_int.h
@@ -31,14 +31,10 @@
#define PDO_FB_DIALECT 3
+#define SHORT_MAX (1 << 8*sizeof(short)-1)
-typedef struct {
- const char *file;
- int line;
- long errcode;
- char *errmsg;
-} pdo_firebird_error_info;
-
+/* Firebird API has a couple of missing const decls in its API */
+#define const_cast(s) ((char*)(s))
typedef struct {
@@ -62,8 +58,19 @@ typedef struct {
/* the statement handle */
isc_stmt_handle stmt;
+ /* the name of the cursor (if it has one) */
+ char name[32];
+
+ /* whether EOF was reached for this statement */
+ unsigned exhausted:1;
+
+ unsigned _reserved:31;
+
+ /* the input SQLDA */
+ XSQLDA *in_sqlda;
+
/* the output SQLDA */
- XSQLDA out_sqlda[1]; /* last member */
+ XSQLDA out_sqlda; /* last member */
} pdo_firebird_stmt;
@@ -71,6 +78,8 @@ extern pdo_driver_t pdo_firebird_driver;
extern struct pdo_stmt_methods firebird_stmt_methods;
+void _firebird_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, char const *file, long line TSRMLS_DC);
+
#endif /* PHP_PDO_FIREBIRD_INT_H */
/*