mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Added PDO::pgsqlLOBCreate(), PDO::pgsqlLOBOpen() and PDO::pgsqlLOBUnlink().
This commit is contained in:
parent
2ad81f4584
commit
131033352d
9 changed files with 361 additions and 22 deletions
|
@ -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 */
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue