X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/73f662acc31034cd98fdc6e157454f7763ef0792..1347f3d1e04bedd1508589173f577673ee2c5554:/stglibs/ibpp.lib/statement.cpp 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" {