diff options
author | Wez Furlong <wez@php.net> | 2005-11-29 02:11:39 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2005-11-29 02:11:39 +0000 |
commit | 131033352d3a0d6ff59b9af4dbc8b2908ec30d11 (patch) | |
tree | a2f8329492c9484274cbe3a0831b013899908b39 /ext/pdo_pgsql/php_pdo_pgsql_int.h | |
parent | 2ad81f4584d81ce36c8071d3c1715257dd09f400 (diff) | |
download | php-git-131033352d3a0d6ff59b9af4dbc8b2908ec30d11.tar.gz |
Added PDO::pgsqlLOBCreate(), PDO::pgsqlLOBOpen() and PDO::pgsqlLOBUnlink().
Diffstat (limited to 'ext/pdo_pgsql/php_pdo_pgsql_int.h')
-rw-r--r-- | ext/pdo_pgsql/php_pdo_pgsql_int.h | 21 |
1 files changed, 16 insertions, 5 deletions
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 <edink@emini.dk> | + | Authors: Edin Kadribasic <edink@emini.dk> | + | Ilia Alshanestsky <ilia@prohost.org> | + | Wez Furlong <wez@php.net> | +----------------------------------------------------------------------+ */ @@ -22,6 +24,7 @@ #define PHP_PDO_PGSQL_INT_H #include <libpq-fe.h> +#include <libpq/libpq-fs.h> #include <php.h> #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 */ /* |