X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/641204dfbdb9fc870cdd2e7f9e3169a44693e7bf..b8c74dd8d281b85e810c72bdc8e315bab9821aa1:/stglibs/ibpp.lib/statement.cpp?ds=sidebyside diff --git a/stglibs/ibpp.lib/statement.cpp b/stglibs/ibpp.lib/statement.cpp index 1a3031fe..e2271cf4 100644 --- a/stglibs/ibpp.lib/statement.cpp +++ b/stglibs/ibpp.lib/statement.cpp @@ -422,7 +422,7 @@ bool StatementImpl::Fetch() _("No statement has been executed or no result set available.")); IBS status; - int code = (*gds.Call()->m_dsql_fetch)(status.Self(), &mHandle, 1, mOutRow->Self()); + ISC_STATUS code = (*gds.Call()->m_dsql_fetch)(status.Self(), &mHandle, 1, mOutRow->Self()); if (code == 100) // This special code means "no more rows" { mResultSetAvailable = false; @@ -452,7 +452,7 @@ bool StatementImpl::Fetch(IBPP::Row& row) row = rowimpl; IBS status; - int code = (*gds.Call()->m_dsql_fetch)(status.Self(), &mHandle, 1, + ISC_STATUS code = (*gds.Call()->m_dsql_fetch)(status.Self(), &mHandle, 1, rowimpl->Self()); if (code == 100) // This special code means "no more rows" {