From 131033352d3a0d6ff59b9af4dbc8b2908ec30d11 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Tue, 29 Nov 2005 02:11:39 +0000 Subject: Added PDO::pgsqlLOBCreate(), PDO::pgsqlLOBOpen() and PDO::pgsqlLOBUnlink(). --- ext/pdo_pgsql/php_pdo_pgsql_int.h | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'ext/pdo_pgsql/php_pdo_pgsql_int.h') diff --git a/ext/pdo_pgsql/php_pdo_pgsql_int.h b/ext/pdo_pgsql/php_pdo_pgsql_int.h index 1b48f63ee1..5f799161cd 100644 --- a/ext/pdo_pgsql/php_pdo_pgsql_int.h +++ b/ext/pdo_pgsql/php_pdo_pgsql_int.h @@ -12,7 +12,9 @@ | obtain it through the world-wide-web, please send a note to | | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ - | Author: Edin Kadribasic | + | Authors: Edin Kadribasic | + | Ilia Alshanestsky | + | Wez Furlong | +----------------------------------------------------------------------+ */ @@ -22,6 +24,7 @@ #define PHP_PDO_PGSQL_INT_H #include +#include #include #define PHP_PDO_PGSQL_CONNECTION_FAILURE_SQLSTATE "08006" @@ -66,10 +69,7 @@ typedef struct { } pdo_pgsql_stmt; typedef struct { - char *repr; - long repr_len; - int pgsql_type; - void *thing; /* for LOBS, REFCURSORS etc. */ + Oid oid; } pdo_pgsql_bound_param; extern pdo_driver_t pdo_pgsql_driver; @@ -90,6 +90,17 @@ enum { PDO_PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT = PDO_ATTR_DRIVER_SPECIFIC, }; +struct pdo_pgsql_lob_self { + pdo_dbh_t *dbh; + PGconn *conn; + int lfd; + Oid oid; +}; + + +php_stream *pdo_pgsql_create_lob_stream(pdo_dbh_t *stmt, int lfd, Oid oid TSRMLS_DC); +extern php_stream_ops pdo_pgsql_lob_stream_ops; + #endif /* PHP_PDO_PGSQL_INT_H */ /* -- cgit v1.2.1