[Libreoffice-commits] core.git: connectivity/source
Andrzej J.R. Hunt
andrzej at ahunt.org
Thu Sep 12 12:02:20 PDT 2013
connectivity/source/commontools/dbexception.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 7b12446f34d1d9e575c7202bedd0763cfbb871dc
Author: Andrzej J.R. Hunt <andrzej at ahunt.org>
Date: Thu Sep 12 20:00:18 2013 +0100
Fix throwFunctionNotSupportedException.
Would have caused eternal recursion, probably was intended to use
throwGenericSQLException or similar, but throwing the correct
exception is probably cleaner anyway.
Change-Id: Ic4afa623bfcd57eb68ef6cfbf737862fd40eaaa2
diff --git a/connectivity/source/commontools/dbexception.cxx b/connectivity/source/commontools/dbexception.cxx
index 6b774ad..b05044f 100644
--- a/connectivity/source/commontools/dbexception.cxx
+++ b/connectivity/source/commontools/dbexception.cxx
@@ -394,9 +394,11 @@ void throwFunctionNotSupportedException( const OUString& _rFunctionName, const :
STR_UNSUPPORTED_FUNCTION,
"$functionname$", _rFunctionName
) );
- throwFunctionNotSupportedException(
+ throw SQLException(
sError,
_rxContext,
+ getStandardSQLState( SQL_FUNCTION_NOT_SUPPORTED ),
+ 0,
_rNextException
);
}
More information about the Libreoffice-commits
mailing list