2 +----------------------------------------------------------------------+
4 +----------------------------------------------------------------------+
5 | Copyright (c) 1997-2013 The PHP Group |
6 +----------------------------------------------------------------------+
7 | This source file is subject to version 3.01 of the PHP license, |
8 | that is bundled with this package in the file LICENSE, and is |
9 | available through the world-wide-web at the following url: |
10 | http://www.php.net/license/3_01.txt |
11 | If you did not receive a copy of the PHP license and are unable to |
12 | obtain it through the world-wide-web, please send a note to |
13 | license@php.net so we can mail you a copy immediately. |
14 +----------------------------------------------------------------------+
15 | Author: Wez Furlong <wez@php.net> |
16 +----------------------------------------------------------------------+
30 /* stuff we use in an OCI database handle */
37 /* OCI9; 0 == use NLS_LANG */
42 unsigned _reserved
:31;
44 pdo_oci_error_info einfo
;
68 pdo_oci_error_info einfo
;
69 unsigned int have_blobs
:1;
73 OCIBind
*bind
; /* allocated by OCI */
80 dvoid
*thing
; /* for LOBS, REFCURSORS etc. */
82 unsigned used_for_output
;
83 } pdo_oci_bound_param
;
85 extern const ub4 PDO_OCI_INIT_MODE
;
86 extern pdo_driver_t pdo_oci_driver
;
87 extern OCIEnv
*pdo_oci_Env
;
89 ub4
_oci_error(OCIError
*err
, pdo_dbh_t
*dbh
, pdo_stmt_t
*stmt
, char *what
, sword status
, int isinit
, const char *file
, int line TSRMLS_DC
);
90 #define oci_init_error(w) _oci_error(H->err, dbh, NULL, w, H->last_err, TRUE, __FILE__, __LINE__ TSRMLS_CC)
91 #define oci_drv_error(w) _oci_error(H->err, dbh, NULL, w, H->last_err, FALSE, __FILE__, __LINE__ TSRMLS_CC)
92 #define oci_stmt_error(w) _oci_error(S->err, stmt->dbh, stmt, w, S->last_err, FALSE, __FILE__, __LINE__ TSRMLS_CC)
94 extern struct pdo_stmt_methods oci_stmt_methods
;
96 /* Default prefetch size in number of rows */
97 #define PDO_OCI_PREFETCH_DEFAULT 100
99 /* Arbitrary assumed row length for prefetch memory limit calcuation */
100 #define PDO_OCI_PREFETCH_ROWSIZE 1024