From 0d06dea2e8ecf06b30aca2e86d15c7f5bbadeb64 Mon Sep 17 00:00:00 2001 From: David Puglielli Date: Thu, 21 Sep 2017 18:37:23 -0700 Subject: [PATCH] Fixed compile bug --- source/pdo_sqlsrv/pdo_stmt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/pdo_sqlsrv/pdo_stmt.cpp b/source/pdo_sqlsrv/pdo_stmt.cpp index 1a34a9b9..7ce2e0f2 100644 --- a/source/pdo_sqlsrv/pdo_stmt.cpp +++ b/source/pdo_sqlsrv/pdo_stmt.cpp @@ -1070,8 +1070,8 @@ int pdo_sqlsrv_stmt_next_rowset( _Inout_ pdo_stmt_t *stmt TSRMLS_DC ) // Make sure that the result set is not null, i.e. SQLNumResultCols() does not // return 0. Normally this error is handled in core_sqlsrv_fetch, but if the // user calls nextRowset() before fetch() the error is never shown so we handle it here. - SQLSMALLINT has_fields = core::SQLNumResultCols( stmt TSRMLS_CC ); - CHECK_CUSTOM_ERROR( has_fields == 0, stmt, SQLSRV_ERROR_NO_FIELDS ) { + SQLSMALLINT has_fields = core::SQLNumResultCols( driver_stmt TSRMLS_CC ); + CHECK_CUSTOM_ERROR( has_fields == 0, driver_stmt, SQLSRV_ERROR_NO_FIELDS ) { throw core::CoreException(); }