summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/hsqldb/HViews.cxx
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2012-06-02 09:42:35 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2012-06-02 09:42:47 -0500
commitd6fef33ef731e96ab55979fa6451f1c1d773103d (patch)
tree3834209533249a173e7446e4c9b7d5c297ccb598 /connectivity/source/drivers/hsqldb/HViews.cxx
parent19f38b6fab0072fad2311e76c766790b8e2962b0 (diff)
targeted string re-work
Change-Id: Iac38f0f2622b1f7ddcc6f91b022c949e7a733c41
Diffstat (limited to 'connectivity/source/drivers/hsqldb/HViews.cxx')
-rw-r--r--connectivity/source/drivers/hsqldb/HViews.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/connectivity/source/drivers/hsqldb/HViews.cxx b/connectivity/source/drivers/hsqldb/HViews.cxx
index 5cf9b2090bdd..57b3fb0bd693 100644
--- a/connectivity/source/drivers/hsqldb/HViews.cxx
+++ b/connectivity/source/drivers/hsqldb/HViews.cxx
@@ -117,7 +117,7 @@ void HViews::dropObject(sal_Int32 _nPos,const ::rtl::OUString /*_sElementName*/)
sal_Bool bIsNew = connectivity::sdbcx::ODescriptor::isNew( xObject );
if (!bIsNew)
{
- ::rtl::OUString aSql( RTL_CONSTASCII_USTRINGPARAM( "DROP VIEW" ));
+ ::rtl::OUString aSql( "DROP VIEW" );
Reference<XPropertySet> xProp(xObject,UNO_QUERY);
aSql += ::dbtools::composeTableName( m_xMetaData, xProp, ::dbtools::eInTableDefinitions, false, false, true );
@@ -140,13 +140,13 @@ void HViews::createView( const Reference< XPropertySet >& descriptor )
{
Reference<XConnection> xConnection = static_cast<OHCatalog&>(m_rParent).getConnection();
- ::rtl::OUString aSql( RTL_CONSTASCII_USTRINGPARAM( "CREATE VIEW " ));
+ ::rtl::OUString aSql( "CREATE VIEW " );
::rtl::OUString aQuote = xConnection->getMetaData()->getIdentifierQuoteString( );
::rtl::OUString sCommand;
aSql += ::dbtools::composeTableName( m_xMetaData, descriptor, ::dbtools::eInTableDefinitions, false, false, true );
- aSql += ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(" AS "));
+ aSql += ::rtl::OUString(" AS ");
descriptor->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_COMMAND)) >>= sCommand;
aSql += sCommand;