diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2015-06-17 12:36:37 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-06-18 11:45:35 +0000 |
commit | 729c8baa415ce5dd29597d43f0161c25b4961482 (patch) | |
tree | aab2a4d1f820413bcb571f8192e69a7c7149fdf1 /connectivity | |
parent | 9284ea261eb7339733202c56e90ef881a1775afb (diff) |
postgresql-sdbc: include error message in SQLException
Change-Id: I9d91503e6beb08f11368fc6b80fefb61f60d4486
Reviewed-on: https://gerrit.libreoffice.org/16342
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_preparedstatement.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_preparedstatement.cxx b/connectivity/source/drivers/postgresql/pq_preparedstatement.cxx index 73f74bba4789..57804c0f15d7 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( ) |