[Libreoffice-commits] core.git: dbaccess/source
Lionel Elie Mamane
lionel at mamane.lu
Thu Feb 28 09:17:24 PST 2013
dbaccess/source/core/api/CacheSet.cxx | 3 ++-
dbaccess/source/core/api/KeySet.cxx | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
New commits:
commit a2db9096e2674bfb1cb125bf6036c990f35579e7
Author: Lionel Elie Mamane <lionel at mamane.lu>
Date: Thu Feb 28 18:06:50 2013 +0100
fdo#61203 initialise m_aComposedTableName *before* trying to use it
Change-Id: Ie7a19bdfe9e7bc729a62191362ce0779d73385a0
diff --git a/dbaccess/source/core/api/CacheSet.cxx b/dbaccess/source/core/api/CacheSet.cxx
index 32ffb78..734989b 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 at 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 6252eec..f252dc8 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 at 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("?,");
More information about the Libreoffice-commits
mailing list