diff options
author | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2013-09-19 19:41:18 +0100 |
---|---|---|
committer | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2013-09-19 20:37:54 +0100 |
commit | a11b6d5356f191f1d4d7ce48e80ce3f2534dc190 (patch) | |
tree | b8d3e19b4370d2374bfac59da0c840af64a0e856 /connectivity | |
parent | fc118515eee34d7a00ce363149bf85737607fed0 (diff) |
Don't throw unnecessary exception.
Even an empty ResultSet can be valid, and no other drivers do this.
Change-Id: Ie3aee718f0187d039dbd0c53fc32a71be4a1d9e9
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/firebird/PreparedStatement.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/connectivity/source/drivers/firebird/PreparedStatement.cxx b/connectivity/source/drivers/firebird/PreparedStatement.cxx index eb2fc178e71e..d1261d441a6a 100644 --- a/connectivity/source/drivers/firebird/PreparedStatement.cxx +++ b/connectivity/source/drivers/firebird/PreparedStatement.cxx @@ -300,12 +300,7 @@ sal_Int32 SAL_CALL OPreparedStatement::executeUpdate() Reference< XResultSet > SAL_CALL OPreparedStatement::executeQuery() throw(SQLException, RuntimeException) { - if (!execute()) - { - // execute succeeded but no results - throw SQLException(); // TODO: add message to exception - } - + execute(); return m_xResultSet; } |