summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/postgresql
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2015-06-17 12:36:37 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2015-06-17 14:19:25 +0200
commiteb0c95c56efedf60e59a56bd6d64b04f4697e66b (patch)
treef07cdd138eebcf010d2628fc49a41a752e2b2f8a /connectivity/source/drivers/postgresql
parentf255df5e56ba54721eb5e201b06d39aa71794090 (diff)
postgresql-sdbc: include error message in SQLException
Change-Id: I9d91503e6beb08f11368fc6b80fefb61f60d4486
Diffstat (limited to 'connectivity/source/drivers/postgresql')
-rw-r--r--connectivity/source/drivers/postgresql/pq_preparedstatement.cxx2
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( )