summaryrefslogtreecommitdiff
path: root/connectivity/source/commontools/AutoRetrievingBase.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/commontools/AutoRetrievingBase.cxx')
-rw-r--r--connectivity/source/commontools/AutoRetrievingBase.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/connectivity/source/commontools/AutoRetrievingBase.cxx b/connectivity/source/commontools/AutoRetrievingBase.cxx
index 189e7569b7bd..9157e3302680 100644
--- a/connectivity/source/commontools/AutoRetrievingBase.cxx
+++ b/connectivity/source/commontools/AutoRetrievingBase.cxx
@@ -29,8 +29,8 @@ namespace connectivity
if ( sStmt.startsWith("INSERT") )
{
sStatement = m_sGeneratedValueStatement;
- static const OUString sColumn("$column");
- static const OUString sTable("$table");
+ static const char sColumn[] = "$column";
+ static const char sTable[] = "$table";
sal_Int32 nIndex = 0;
nIndex = sStatement.indexOf(sColumn,nIndex);
if ( -1 != nIndex )
@@ -49,7 +49,7 @@ namespace connectivity
nIntoIndex = 0;
OUString sTableName = sStmt.getToken(0,' ',nIntoIndex);
- sStatement = sStatement.replaceAt(nIndex,sTable.getLength(),sTableName);
+ sStatement = sStatement.replaceAt(nIndex, strlen(sTable), sTableName);
}
}
return sStatement;