summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/postgresql/pq_xcolumns.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-08-31 08:04:12 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-08-31 08:04:12 +0200
commit7bff36d45d946abe40bb7a642165a54d289e11c1 (patch)
treebaaaf5d94bdda6867f14b0aa4fbea5737583850a /connectivity/source/drivers/postgresql/pq_xcolumns.cxx
parentb03b8c8c0ccf642efd706267a3d232d2c3de3850 (diff)
loplugin:stringconstant: OUStringBuffer: appendAscii -> append
Change-Id: I68b02ad101c4c2165b4618ed5d97cbffc2c43d2d
Diffstat (limited to 'connectivity/source/drivers/postgresql/pq_xcolumns.cxx')
-rw-r--r--connectivity/source/drivers/postgresql/pq_xcolumns.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_xcolumns.cxx b/connectivity/source/drivers/postgresql/pq_xcolumns.cxx
index 33a1c27cad4e..333192d848f5 100644
--- a/connectivity/source/drivers/postgresql/pq_xcolumns.cxx
+++ b/connectivity/source/drivers/postgresql/pq_xcolumns.cxx
@@ -517,11 +517,11 @@ void Columns::dropByIndex( sal_Int32 index )
if( index < 0 || index >= m_values.getLength() )
{
OUStringBuffer buf( 128 );
- buf.appendAscii( "COLUMNS: Index out of range (allowed 0 to " );
+ buf.append( "COLUMNS: Index out of range (allowed 0 to " );
buf.append((sal_Int32)(m_values.getLength() -1) );
- buf.appendAscii( ", got " );
+ buf.append( ", got " );
buf.append( index );
- buf.appendAscii( ")" );
+ buf.append( ")" );
throw com::sun::star::lang::IndexOutOfBoundsException(
buf.makeStringAndClear(), *this );
}
@@ -533,9 +533,9 @@ void Columns::dropByIndex( sal_Int32 index )
set->getPropertyValue( st.NAME ) >>= name;
OUStringBuffer update( 128 );
- update.appendAscii( "ALTER TABLE ONLY");
+ update.append( "ALTER TABLE ONLY");
bufferQuoteQualifiedIdentifier( update, m_schemaName, m_tableName, m_pSettings );
- update.appendAscii( "DROP COLUMN" );
+ update.append( "DROP COLUMN" );
bufferQuoteIdentifier( update, name, m_pSettings );
Reference< XStatement > stmt = m_origin->createStatement( );
DisposeGuard disposeIt( stmt );