Kaydet (Commit) a2db9096 authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

fdo#61203 initialise m_aComposedTableName *before* trying to use it

Change-Id: Ie7a19bdfe9e7bc729a62191362ce0779d73385a0
üst 06768783
......@@ -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("?,");
......
......@@ -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("?,");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment