diff options
author | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2013-09-06 08:02:05 +0100 |
---|---|---|
committer | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2013-09-06 08:41:00 +0100 |
commit | d153993e873850700feba1fd4d3e1d151f9ad4a8 (patch) | |
tree | 728535b71e3803925f1402656585584969b13b66 /connectivity | |
parent | 8e6b22b12322175e9aff643af45f275cb8c9cc5e (diff) |
Add error checking in rebuildIndexes. (firebird-sdbc)
Change-Id: If59c9fe7d7253347717aeb5b1aadf212b7d536a6
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/firebird/Connection.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/connectivity/source/drivers/firebird/Connection.cxx b/connectivity/source/drivers/firebird/Connection.cxx index 9b689edd9c56..1d2e8f15ecba 100644 --- a/connectivity/source/drivers/firebird/Connection.cxx +++ b/connectivity/source/drivers/firebird/Connection.cxx @@ -836,14 +836,19 @@ void OConnection::rebuildIndexes() throw(SQLException) + " ACTIVE"; ISC_STATUS_ARRAY aStatusVector; + ISC_STATUS aErr; - isc_dsql_execute_immediate(aStatusVector, + aErr = isc_dsql_execute_immediate(aStatusVector, &getDBHandle(), &getTransaction(), 0, // Length: 0 for null terminated sAlterIndex.getStr(), FIREBIRD_SQL_DIALECT, NULL); + if (aErr) + evaluateStatusVector(aStatusVector, + "rebuildIndexes:isc_dsql_execute_immediate", + *this); } commit(); } |