Skip to content

Commit 00df9b6

Browse files
committed
Fixes PECL Bug #5868; wrong iters count for OCIStmtExecute
1 parent bf9a25d commit 00df9b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/pdo_oci/oci_statement.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ static int oci_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC) /* {{{ */
138138
}
139139

140140
STMT_CALL(OCIStmtExecute, (S->H->svc, S->stmt, S->err,
141-
(S->stmt_type == OCI_STMT_SELECT || S->have_blobs) ? 1 : 0, 0, NULL, NULL,
141+
(S->stmt_type == OCI_STMT_SELECT && !S->have_blobs) ? 0 : 1, 0, NULL, NULL,
142142
mode));
143143

144144
if (!stmt->executed) {

0 commit comments

Comments
 (0)