From 42165189826367937737861116e969a22e9db787 Mon Sep 17 00:00:00 2001 From: "Andrzej J.R. Hunt" Date: Wed, 11 Sep 2013 21:40:41 +0100 Subject: Update implementations of ColumnLocate::findColumn to throw on invalid column. Change-Id: I7a9354ecd35a70a005c6c50e38d27de9b33332bd Reviewed-on: https://gerrit.libreoffice.org/5922 Reviewed-by: Fridrich Strba Tested-by: Fridrich Strba --- include/connectivity/dbexception.hxx | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include/connectivity/dbexception.hxx') diff --git a/include/connectivity/dbexception.hxx b/include/connectivity/dbexception.hxx index a84450b607d8..c94e12a96ef3 100644 --- a/include/connectivity/dbexception.hxx +++ b/include/connectivity/dbexception.hxx @@ -307,6 +307,19 @@ OOO_DLLPUBLIC_DBTOOLS void throwFeatureNotImplementedException( ) throw (::com::sun::star::sdbc::SQLException); +//---------------------------------------------------------------------------------- +/** throw a SQLException with SQLState 42S22 (Column Not Found) + @param _rColumnNameName + The column that couldn't be found. + @param _rxContext + the context of the exception +*/ +OOO_DLLPUBLIC_DBTOOLS void throwInvalidColumnException( + const OUString& _rColumnName, + const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxContext + ) + throw (::com::sun::star::sdbc::SQLException); + //---------------------------------------------------------------------------------- /** throws an SQLException */ -- cgit