summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2014-05-31 05:44:16 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2014-05-31 03:57:26 +0000
commitd2d2136f3f1ecfa03713ff4231ad6214ca6a9c33 (patch)
treed2faa5c397a446bf6224b0a34fca34fbb91c2df5 /connectivity
parent8eb341ac9ebad8d8af399ce41eb02268aa25fa56 (diff)
fdo#73352 firebird don't claim to support interfaces one doesn't
and then throw an exception when the interface is used Change-Id: Id5e2c852323d49f51ab55cf46ab54223cf8ccf03 Reviewed-on: https://gerrit.libreoffice.org/9590 Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu> Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/firebird/ResultSet.cxx2
-rw-r--r--connectivity/source/drivers/firebird/ResultSet.hxx10
2 files changed, 10 insertions, 2 deletions
diff --git a/connectivity/source/drivers/firebird/ResultSet.cxx b/connectivity/source/drivers/firebird/ResultSet.cxx
index 22d6013d5ff8..4f8cc5d4067f 100644
--- a/connectivity/source/drivers/firebird/ResultSet.cxx
+++ b/connectivity/source/drivers/firebird/ResultSet.cxx
@@ -756,6 +756,7 @@ void SAL_CALL OResultSet::cancel( ) throw(RuntimeException, std::exception)
}
//----- XWarningsSupplier UNSUPPORTED -----------------------------------------
+#if 0
void SAL_CALL OResultSet::clearWarnings() throw(SQLException, RuntimeException, std::exception)
{
::dbtools::throwFunctionNotSupportedException("clearWarnings not supported in firebird",
@@ -768,6 +769,7 @@ Any SAL_CALL OResultSet::getWarnings() throw(SQLException, RuntimeException, std
*this);
return Any();
}
+#endif
//----- OIdPropertyArrayUsageHelper ------------------------------------------
IPropertyArrayHelper* OResultSet::createArrayHelper() const
diff --git a/connectivity/source/drivers/firebird/ResultSet.hxx b/connectivity/source/drivers/firebird/ResultSet.hxx
index c8048d32dabe..90c2b9fca550 100644
--- a/connectivity/source/drivers/firebird/ResultSet.hxx
+++ b/connectivity/source/drivers/firebird/ResultSet.hxx
@@ -26,7 +26,7 @@
#include <connectivity/FValue.hxx>
#include <connectivity/OSubComponent.hxx>
-#include <cppuhelper/compbase8.hxx>
+#include <cppuhelper/compbase7.hxx>
#include <comphelper/proparrhlp.hxx>
#include <comphelper/propertycontainer.hxx>
@@ -39,7 +39,9 @@
#include <com/sun/star/sdbc/XResultSet.hpp>
#include <com/sun/star/sdbc/XRow.hpp>
#include <com/sun/star/sdbc/XResultSetMetaDataSupplier.hpp>
+#if 0
#include <com/sun/star/sdbc/XWarningsSupplier.hpp>
+#endif
namespace connectivity
{
@@ -48,11 +50,13 @@ namespace connectivity
/*
** OResultSet
*/
- typedef ::cppu::WeakComponentImplHelper8< ::com::sun::star::sdbc::XResultSet,
+ typedef ::cppu::WeakComponentImplHelper7< ::com::sun::star::sdbc::XResultSet,
::com::sun::star::sdbc::XRow,
::com::sun::star::sdbc::XResultSetMetaDataSupplier,
::com::sun::star::util::XCancellable,
+#if 0
::com::sun::star::sdbc::XWarningsSupplier,
+#endif
::com::sun::star::sdbc::XCloseable,
::com::sun::star::sdbc::XColumnLocate,
::com::sun::star::lang::XServiceInfo> OResultSet_BASE;
@@ -185,8 +189,10 @@ namespace connectivity
// XCloseable
virtual void SAL_CALL close( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XWarningsSupplier
+#if 0
virtual ::com::sun::star::uno::Any SAL_CALL getWarnings( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL clearWarnings( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
+#endif
// XColumnLocate
virtual sal_Int32 SAL_CALL findColumn(const ::rtl::OUString& columnName)