fdo#67269 adapt checkTable to getTableName change

getTableName used to return schema.table;
now it returns just table
But tables are indexed by schema.table in getTables(), so reconstruct that for the lookup.

Change-Id: I53da1e43762b3a470e34b5dfdb0e1bb3dc914780
This commit is contained in:
Lionel Elie Mamane
2013-07-25 15:32:09 +02:00
parent 129a0d8c6f
commit fc1b46e03f

View File

@@ -213,9 +213,10 @@ void ResultSetMetaData::checkTable()
}
if( tables.is() )
{
OUString name = getTableName( 1 );
// if( tables->hasByName( name ) )
tables->getByName( name ) >>= m_table;
const OUString name (getTableName ( 1 ));
const OUString schema (getSchemaName( 1 ));
const OUString composedName( schema.isEmpty() ? name : (schema + "." + name) );
tables->getByName( composedName ) >>= m_table;
}
}
}