summaryrefslogtreecommitdiffstats
path: root/connectivity/source/drivers/postgresql/pq_xtables.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/drivers/postgresql/pq_xtables.cxx')
-rw-r--r--connectivity/source/drivers/postgresql/pq_xtables.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_xtables.cxx b/connectivity/source/drivers/postgresql/pq_xtables.cxx
index feaaf745fad1..52a418da6a9c 100644
--- a/connectivity/source/drivers/postgresql/pq_xtables.cxx
+++ b/connectivity/source/drivers/postgresql/pq_xtables.cxx
@@ -326,7 +326,7 @@ void Tables::dropByIndex( sal_Int32 index )
OUString name,schema;
set->getPropertyValue( st.SCHEMA_NAME ) >>= schema;
set->getPropertyValue( st.NAME ) >>= name;
- if( extractStringProperty( set, st.TYPE ).equals( st.VIEW ) && m_pSettings->views.is() )
+ if( extractStringProperty( set, st.TYPE ) == st.VIEW && m_pSettings->views.is() )
{
m_pSettings->pViewsImpl->dropByName( concatQualified( schema, name ) );
}
@@ -334,7 +334,7 @@ void Tables::dropByIndex( sal_Int32 index )
{
OUStringBuffer update( 128 );
update.append( "DROP " );
- if( extractStringProperty( set, st.TYPE ).equals( st.VIEW ) )
+ if( extractStringProperty( set, st.TYPE ) == st.VIEW )
update.append( "VIEW " );
else
update.append( "TABLE " );