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:
@@ -213,9 +213,10 @@ void ResultSetMetaData::checkTable()
|
|||||||
}
|
}
|
||||||
if( tables.is() )
|
if( tables.is() )
|
||||||
{
|
{
|
||||||
OUString name = getTableName( 1 );
|
const OUString name (getTableName ( 1 ));
|
||||||
// if( tables->hasByName( name ) )
|
const OUString schema (getSchemaName( 1 ));
|
||||||
tables->getByName( name ) >>= m_table;
|
const OUString composedName( schema.isEmpty() ? name : (schema + "." + name) );
|
||||||
|
tables->getByName( composedName ) >>= m_table;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user