summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/postgresql/pq_xindexes.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/drivers/postgresql/pq_xindexes.cxx')
-rw-r--r--connectivity/source/drivers/postgresql/pq_xindexes.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_xindexes.cxx b/connectivity/source/drivers/postgresql/pq_xindexes.cxx
index 5366230e46b0..5393b480da1c 100644
--- a/connectivity/source/drivers/postgresql/pq_xindexes.cxx
+++ b/connectivity/source/drivers/postgresql/pq_xindexes.cxx
@@ -209,15 +209,15 @@ void Indexes::appendByDescriptor(
OUStringBuffer buf( 128 );
- buf.appendAscii( RTL_CONSTASCII_STRINGPARAM( "CREATE " ) );
+ buf.append( "CREATE " );
if( isUnique )
- buf.appendAscii( RTL_CONSTASCII_STRINGPARAM( "UNIQUE " ) );
- buf.appendAscii( RTL_CONSTASCII_STRINGPARAM( "INDEX " ) );
+ buf.append( "UNIQUE " );
+ buf.append( "INDEX " );
bufferQuoteIdentifier( buf, name, m_pSettings );
- buf.appendAscii( RTL_CONSTASCII_STRINGPARAM( " ON " ) );
+ buf.append( " ON " );
bufferQuoteQualifiedIdentifier( buf, m_schemaName, m_tableName, m_pSettings );
- buf.appendAscii( RTL_CONSTASCII_STRINGPARAM( " ( " ) );
+ buf.append( " ( " );
Reference< XColumnsSupplier > columns( descriptor, UNO_QUERY );
if( columns.is() )
@@ -236,13 +236,13 @@ void Indexes::appendByDescriptor(
}
else
{
- buf.appendAscii( RTL_CONSTASCII_STRINGPARAM( ", " ) );
+ buf.append( ", " );
}
buf.append( extractStringProperty( column, st.NAME ) );
}
}
}
- buf.appendAscii( RTL_CONSTASCII_STRINGPARAM( " ) " ) );
+ buf.append( " ) " );
m_origin->createStatement()->executeUpdate( buf.makeStringAndClear() );
refresh();
@@ -273,7 +273,7 @@ void Indexes::dropByIndex( sal_Int32 index )
Statics &st = getStatics();
OUStringBuffer buf( 128 );
- buf.appendAscii( RTL_CONSTASCII_STRINGPARAM( "DROP INDEX " ) );
+ buf.append( "DROP INDEX " );
bufferQuoteIdentifier( buf, extractStringProperty( set, st.NAME ), m_pSettings );
m_origin->createStatement()->executeUpdate( buf.makeStringAndClear() );