connectivity/source/commontools/dbexception.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 7b12446f34d1d9e575c7202bedd0763cfbb871dc
Author: Andrzej J.R. Hunt <andr...@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
     );
 }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to