diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-03 08:18:17 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-03 09:42:49 +0200 |
commit | 4dedf654d83ddc22c93d98fe6c7225b8e1e416bd (patch) | |
tree | 277a7fe13abd99e31f574ed358ccaa40c8d068be /connectivity/source/drivers/postgresql/pq_statement.cxx | |
parent | 9fdd671fb276a419089f26e47739c4a783d15e93 (diff) |
loplugin:unuseddefaultparams in connectivity
Change-Id: I03cc69a924913713a0da819899ce259305b88016
Diffstat (limited to 'connectivity/source/drivers/postgresql/pq_statement.cxx')
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_statement.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_statement.cxx b/connectivity/source/drivers/postgresql/pq_statement.cxx index bff2a1967340..8a0056a7ecdc 100644 --- a/connectivity/source/drivers/postgresql/pq_statement.cxx +++ b/connectivity/source/drivers/postgresql/pq_statement.cxx @@ -242,17 +242,11 @@ void Statement::close( ) throw (SQLException, RuntimeException, std::exception) } void Statement::raiseSQLException( - const OUString & sql, const char * errorMsg, const char *errorType ) + const OUString & sql, const char * errorMsg ) throw( SQLException ) { OUStringBuffer buf(128); buf.append( "pq_driver: "); - if( errorType ) - { - buf.append( "[" ); - buf.appendAscii( errorType ); - buf.append( "]" ); - } buf.append( OUString( errorMsg, strlen(errorMsg) , m_pSettings->encoding ) ); buf.append( " (caused by statement '" ); |