summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/firebird/PreparedStatement.cxx
diff options
context:
space:
mode:
authorAndrzej J.R. Hunt <andrzej@ahunt.org>2013-08-08 08:16:41 +0100
committerAndrzej J.R. Hunt <andrzej@ahunt.org>2013-08-11 16:05:09 +0100
commit75b2c92cfbaafff09e4f6e40010e5bc876979794 (patch)
tree1dbada71bcb11590dc2fb3a4b49382ec86a4f94e /connectivity/source/drivers/firebird/PreparedStatement.cxx
parent6e11164d57c5f8be324e32f65a31b1112e65639f (diff)
Improve exceptions in Statement.
Change-Id: Ib1915c143abee8c9162477da07462a68dd45e03c
Diffstat (limited to 'connectivity/source/drivers/firebird/PreparedStatement.cxx')
-rw-r--r--connectivity/source/drivers/firebird/PreparedStatement.cxx21
1 files changed, 8 insertions, 13 deletions
diff --git a/connectivity/source/drivers/firebird/PreparedStatement.cxx b/connectivity/source/drivers/firebird/PreparedStatement.cxx
index 7e4b5af909a8..9a9f9888a4de 100644
--- a/connectivity/source/drivers/firebird/PreparedStatement.cxx
+++ b/connectivity/source/drivers/firebird/PreparedStatement.cxx
@@ -79,20 +79,15 @@ void OPreparedStatement::ensurePrepared()
m_pInSqlda->sqln = 10;
} // TODO: free this on closing
- aErr = prepareAndDescribeStatement(m_sSqlStatement,
- m_pOutSqlda,
- m_pInSqlda);
- if (aErr)
- {
- SAL_WARN("connectivity.firebird", "prepareAndDescribeStatement failed");
- }
- else if (m_aStatementHandle)
- {
- isc_dsql_describe_bind(m_statusVector,
- &m_aStatementHandle,
- 1,
+ prepareAndDescribeStatement(m_sSqlStatement,
+ m_pOutSqlda,
m_pInSqlda);
- }
+
+
+ aErr = isc_dsql_describe_bind(m_statusVector,
+ &m_aStatementHandle,
+ 1,
+ m_pInSqlda);
if (aErr)
{