summaryrefslogtreecommitdiff
path: root/ext/oci8
diff options
context:
space:
mode:
authorChristopher Jones <sixd@php.net>2013-08-13 15:15:57 -0700
committerChristopher Jones <sixd@php.net>2013-08-13 15:15:57 -0700
commitf95cd93408997bd03e1811060d1f25680dc66607 (patch)
treefe46e03d5c925dec16c581b734b0d754c853c5fa /ext/oci8
parentc5674bb502ba5a0b4f14c3171de1ab617245a39d (diff)
downloadphp-git-f95cd93408997bd03e1811060d1f25680dc66607.tar.gz
Fix unused variable warning in OCI8 2.0
Diffstat (limited to 'ext/oci8')
-rw-r--r--ext/oci8/oci8_statement.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/oci8/oci8_statement.c b/ext/oci8/oci8_statement.c
index 561abab675..feec056854 100644
--- a/ext/oci8/oci8_statement.c
+++ b/ext/oci8/oci8_statement.c
@@ -124,14 +124,14 @@ php_oci_statement *php_oci_statement_create(php_oci_connection *connection, char
Fetch implicit result set statement resource */
php_oci_statement *php_oci_get_implicit_resultset(php_oci_statement *statement TSRMLS_DC)
{
- void *result;
- ub4 rtype;
- php_oci_statement *statement2; /* implicit result set statement handle */
-
#if (OCI_MAJOR_VERSION < 12)
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Implicit results are available in Oracle Database 12c onwards");
return NULL;
#else
+ void *result;
+ ub4 rtype;
+ php_oci_statement *statement2; /* implicit result set statement handle */
+
PHP_OCI_CALL_RETURN(OCISTMTGETNEXTRESULT, statement->errcode, OCIStmtGetNextResult, (statement->stmt, statement->err, &result, &rtype, OCI_DEFAULT));
if (statement->errcode == OCI_NO_DATA) {
return NULL;