fdo#35784 minimal fix

Fake DatabaseMetaData::getImportedKeys: we can get away with not giving column names if we give zero data rows
This commit is contained in:
Lionel Elie Mamane 2011-08-09 23:10:03 +02:00
parent 1b66f42870
commit 580f4d1453

View file

@ -1995,12 +1995,9 @@ static void addPrivilegesToVector(
// makeAny( resolveColumnNames(foreignMap, xRow->getString(8) ) ) );
// }
// fake the getImportedKey() function call in
// dbaccess/source/ui/relationdesign/RelationController.cxx
// it seems to be the only place in the office, where this function is needed
// LEM TODO: Well, used elsewhere now and breaks things. Fix it.
// LEM TODO: full "real" implementation
return new SequenceResultSet(
m_refMutex, *this, Sequence< OUString >(), Sequence< Sequence< Any > > (1), m_pSettings->tc );
m_refMutex, *this, Sequence< OUString >(), Sequence< Sequence< Any > > (), m_pSettings->tc );
}
::com::sun::star::uno::Reference< XResultSet > DatabaseMetaData::getExportedKeys(