[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - connectivity/source

Lionel Elie Mamane lionel at mamane.lu
Thu Jun 18 04:45:56 PDT 2015


 connectivity/source/drivers/postgresql/pq_preparedstatement.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 729c8baa415ce5dd29597d43f0161c25b4961482
Author: Lionel Elie Mamane <lionel at mamane.lu>
Date:   Wed Jun 17 12:36:37 2015 +0200

    postgresql-sdbc: include error message in SQLException
    
    Change-Id: I9d91503e6beb08f11368fc6b80fefb61f60d4486
    Reviewed-on: https://gerrit.libreoffice.org/16342
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Michael Stahl <mstahl at redhat.com>

diff --git a/connectivity/source/drivers/postgresql/pq_preparedstatement.cxx b/connectivity/source/drivers/postgresql/pq_preparedstatement.cxx
index 73f74bb..57804c0 100644
--- a/connectivity/source/drivers/postgresql/pq_preparedstatement.cxx
+++ b/connectivity/source/drivers/postgresql/pq_preparedstatement.cxx
@@ -329,7 +329,7 @@ void PreparedStatement::raiseSQLException(
     buf.appendAscii( "')" );
     OUString error = buf.makeStringAndClear();
     log( m_pSettings, LogLevel::ERROR, error );
-    throw SQLException( buf.makeStringAndClear(), *this, OUString(), 1, Any() );
+    throw SQLException( error, *this, OUString(), 1, Any() );
 }
 
 Reference< XResultSet > PreparedStatement::executeQuery( )


More information about the Libreoffice-commits mailing list