diff options
author | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2013-07-30 17:05:13 +0200 |
---|---|---|
committer | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2013-07-30 20:47:02 +0200 |
commit | 470daf5ce02924f31b7cb8a95c921427cfb4d277 (patch) | |
tree | a1dd31f8ff70ffa0bfa4fe3d4083303f9446285d /connectivity | |
parent | 09a4c4d176ff97ab8ff4027af83a549991667baf (diff) |
Add extra error check. (firebird-sdbc)
Change-Id: Id342c01feddb9e0779afdc663ae019ea92a4517d
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/firebird/FPreparedStatement.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/connectivity/source/drivers/firebird/FPreparedStatement.cxx b/connectivity/source/drivers/firebird/FPreparedStatement.cxx index 4e05b9207c45..441b86bcf66c 100644 --- a/connectivity/source/drivers/firebird/FPreparedStatement.cxx +++ b/connectivity/source/drivers/firebird/FPreparedStatement.cxx @@ -128,8 +128,10 @@ void OPreparedStatement::ensurePrepared() // m_nNumParams = isc_vax_integer(aResultBuffer+3, aVarLength); // } // } - mallocSQLVAR(m_pInSqlda); - evaluateStatusVector(m_statusVector, m_sSqlStatement, *this); + if (!aErr) + mallocSQLVAR(m_pInSqlda); + else + evaluateStatusVector(m_statusVector, m_sSqlStatement, *this); } OPreparedStatement::~OPreparedStatement() |