summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dbaccess/source/core/api/CacheSet.cxx3
-rw-r--r--dbaccess/source/core/api/KeySet.cxx3
2 files changed, 4 insertions, 2 deletions
diff --git a/dbaccess/source/core/api/CacheSet.cxx b/dbaccess/source/core/api/CacheSet.cxx
index 32ffb78437c4..734989b63440 100644
--- a/dbaccess/source/core/api/CacheSet.cxx
+++ b/dbaccess/source/core/api/CacheSet.cxx
@@ -156,10 +156,11 @@ void OCacheSet::fillTableName(const Reference<XPropertySet>& _xTable) throw(SQL
void SAL_CALL OCacheSet::insertRow( const ORowSetRow& _rInsertRow,const connectivity::OSQLTable& _xTable ) throw(SQLException, RuntimeException)
{
RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "Ocke.Janssen@sun.com", "OCacheSet::insertRow" );
- OUStringBuffer aSql("INSERT INTO " + m_aComposedTableName + " ( ");
Reference<XPropertySet> xSet(_xTable,UNO_QUERY);
fillTableName(xSet);
+ OUStringBuffer aSql("INSERT INTO " + m_aComposedTableName + " ( ");
+
// set values and column names
::rtl::OUStringBuffer aValues(" VALUES ( ");
static ::rtl::OUString aPara("?,");
diff --git a/dbaccess/source/core/api/KeySet.cxx b/dbaccess/source/core/api/KeySet.cxx
index 6252eec070cc..f252dc88ea7b 100644
--- a/dbaccess/source/core/api/KeySet.cxx
+++ b/dbaccess/source/core/api/KeySet.cxx
@@ -728,10 +728,11 @@ void OKeySet::executeUpdate(const ORowSetRow& _rInsertRow ,const ORowSetRow& _rO
void SAL_CALL OKeySet::insertRow( const ORowSetRow& _rInsertRow,const connectivity::OSQLTable& _xTable ) throw(SQLException, RuntimeException)
{
RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "Ocke.Janssen@sun.com", "OKeySet::insertRow" );
- OUStringBuffer aSql( "INSERT INTO " + m_aComposedTableName + " ( ");
Reference<XPropertySet> xSet(_xTable,UNO_QUERY);
fillTableName(xSet);
+ OUStringBuffer aSql( "INSERT INTO " + m_aComposedTableName + " ( ");
+
// set values and column names
OUStringBuffer aValues(OUString(" VALUES ( "));
static OUString aPara("?,");