summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorAndrzej J.R. Hunt <andrzej@ahunt.org>2013-11-04 08:37:08 +0000
committerAndrzej J.R. Hunt <andrzej@ahunt.org>2013-11-04 08:40:00 +0000
commit45053900a4b05018359bfc135ebe0b2c6ab93f4f (patch)
treec9e303846a19d5a8de57e99ea3a4a2811860cd67 /connectivity
parent547d2c75824ab0e22fe33ff6d7d40fd5b313ff26 (diff)
Fix bogus OUString constructor fixes.
aeb41c9b9b7559c6d87bf92807acdc0df9e104cc (remove redundant calls to OUString constructor) introduced: error: variable 'sComposedName' is uninitialized when used within its own initialization Change-Id: I846337da43625d1cdbd33f0705499daa0c419894
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/hsqldb/HTable.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/connectivity/source/drivers/hsqldb/HTable.cxx b/connectivity/source/drivers/hsqldb/HTable.cxx
index de618dabec89..cd9e06ac810e 100644
--- a/connectivity/source/drivers/hsqldb/HTable.cxx
+++ b/connectivity/source/drivers/hsqldb/HTable.cxx
@@ -385,10 +385,10 @@ void SAL_CALL OHSQLTable::rename( const OUString& newName ) throw(SQLException,
OUString sCatalog,sSchema,sTable;
::dbtools::qualifiedNameComponents(getMetaData(),newName,sCatalog,sSchema,sTable,::dbtools::eInDataManipulation);
- OUString sComposedName =
- ::dbtools::composeTableName( getMetaData(), m_CatalogName, m_SchemaName, m_Name, sal_True, ::dbtools::eInDataManipulation ) +
- sComposedName + " RENAME TO " +
- ::dbtools::composeTableName( getMetaData(), sCatalog, sSchema, sTable, sal_True, ::dbtools::eInDataManipulation );
+ sSql +=
+ ::dbtools::composeTableName( getMetaData(), m_CatalogName, m_SchemaName, m_Name, sal_True, ::dbtools::eInDataManipulation )
+ + " RENAME TO "
+ + ::dbtools::composeTableName( getMetaData(), sCatalog, sSchema, sTable, sal_True, ::dbtools::eInDataManipulation );
executeStatement(sSql);