diff options
author | Antony Dovgal <tony2001@php.net> | 2007-01-22 12:49:22 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2007-01-22 12:49:22 +0000 |
commit | 725217571e0c003b65d282f0767c76be5683b98d (patch) | |
tree | f17ffb87bdb0283c0e441d9fe254ff9b58674549 /ext/pdo_oci/oci_statement.c | |
parent | 933c26de41ffe84ece5b92a4106208497c9ea331 (diff) | |
download | php-git-725217571e0c003b65d282f0767c76be5683b98d.tar.gz |
fix PECL bug #7295 (ORA-01405: fetched column value is NULL on LOB fields)
Diffstat (limited to 'ext/pdo_oci/oci_statement.c')
-rwxr-xr-x | ext/pdo_oci/oci_statement.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/pdo_oci/oci_statement.c b/ext/pdo_oci/oci_statement.c index 8c5137a30f..7a908fb2f6 100755 --- a/ext/pdo_oci/oci_statement.c +++ b/ext/pdo_oci/oci_statement.c @@ -272,7 +272,7 @@ static int oci_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *pa case PDO_PARAM_STR: default: P->oci_type = SQLT_CHR; - value_sz = param->max_value_len + 1; + value_sz = param->max_value_len; if (param->max_value_len == 0) { value_sz = 4000; /* maximum size before value is interpreted as a LONG value */ } @@ -460,6 +460,7 @@ static sb4 oci_define_callback(dvoid *octxp, OCIDefine *define, ub4 iter, dvoid *piecep = OCI_ONE_PIECE; *bufpp = col->data; *alenpp = &col->datalen; + *indpp = (dvoid *)&col->indicator; break; default: |