Skip to content

Commit 7252175

Browse files
committed
fix PECL bug #7295 (ORA-01405: fetched column value is NULL on LOB fields)
1 parent 933c26d commit 7252175

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? Jan 2007, PHP 5.2.1RC4
4+
- Fixed PECL bug #7295 (ORA-01405: fetched column value is NULL on LOB fields).
5+
(Tony)
46
- Fixed bug #40191 (use of array_unique() with objects triggers segfault).
57
(Tony)
68
- Fixed bug #40169 (CURLOPT_TCP_NODELAY only available in curl >= 7.11.2).

ext/pdo_oci/oci_statement.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ static int oci_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *pa
272272
case PDO_PARAM_STR:
273273
default:
274274
P->oci_type = SQLT_CHR;
275-
value_sz = param->max_value_len + 1;
275+
value_sz = param->max_value_len;
276276
if (param->max_value_len == 0) {
277277
value_sz = 4000; /* maximum size before value is interpreted as a LONG value */
278278
}
@@ -460,6 +460,7 @@ static sb4 oci_define_callback(dvoid *octxp, OCIDefine *define, ub4 iter, dvoid
460460
*piecep = OCI_ONE_PIECE;
461461
*bufpp = col->data;
462462
*alenpp = &col->datalen;
463+
*indpp = (dvoid *)&col->indicator;
463464
break;
464465

465466
default:

0 commit comments

Comments
 (0)