1 --- PHP_5_3/ext/pdo_oci/oci_statement.c 2010/12/10 00:30:23 306148
2 +++ PHP_5_3/ext/pdo_oci/oci_statement.c 2010/12/10 00:33:48 306149
4 #include "php_pdo_oci_int.h"
5 #include "Zend/zend_extensions.h"
7 +#define PDO_OCI_LOBMAXSIZE (4294967295UL) /* OCI_LOBMAXSIZE */
9 #define STMT_CALL(name, params) \
11 S->last_err = name params; \
13 &amt, self->offset, buf, count,
14 NULL, NULL, 0, SQLCS_IMPLICIT);
16 - if (r != OCI_SUCCESS) {
17 + if (r != OCI_SUCCESS && r != OCI_NEED_DATA) {
33 static int oci_blob_seek(php_stream *stream, off_t offset, int whence, off_t *newoffset TSRMLS_DC)
35 struct oci_lob_self *self = (struct oci_lob_self*)stream->abstract;
38 + if (offset >= PDO_OCI_LOBMAXSIZE) {
41 + self->offset = offset + 1; /* Oracle LOBS are 1-based, but PHP is 0-based */
47 static php_stream_ops oci_blob_stream_ops = {
52 "pdo_oci blob stream",
53 - NULL, /*oci_blob_seek,*/