summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorAndrzej J.R. Hunt <andrzej@ahunt.org>2013-09-12 20:00:18 +0100
committerAndrzej J.R. Hunt <andrzej@ahunt.org>2013-09-12 20:01:56 +0100
commit7b12446f34d1d9e575c7202bedd0763cfbb871dc (patch)
tree1c4263a6927d5494638433f1255f9166d8fa59b9 /connectivity
parent9f46834fbfa73a53536a336fa8f1fb6fff3bfbf9 (diff)
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
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/commontools/dbexception.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/connectivity/source/commontools/dbexception.cxx b/connectivity/source/commontools/dbexception.cxx
index 6b774ad0b182..b05044fdb803 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
);
}