From 33727ca1161b49536d561806da0b54b035f50c89 Mon Sep 17 00:00:00 2001 From: Lionel Elie Mamane Date: Tue, 9 Aug 2011 23:10:03 +0200 Subject: [PATCH] fdo#35784 minimal fix Fake DatabaseMetaData::getImportedKeys: we can get away with not giving column names if we give zero data rows --- .../drivers/postgresql/pq_databasemetadata.cxx | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/connectivity/source/drivers/postgresql/pq_databasemetadata.cxx b/connectivity/source/drivers/postgresql/pq_databasemetadata.cxx index 172dca9..40dd2a4 100644 --- a/connectivity/source/drivers/postgresql/pq_databasemetadata.cxx +++ b/connectivity/source/drivers/postgresql/pq_databasemetadata.cxx @@ -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: 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( -- 1.7.2.5