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

Retrieve CatalogName only once, too

üst 6747cc43
......@@ -48,12 +48,12 @@ sdbcx::ObjectType OIndexColumns::createObject(const ::rtl::OUString& _rName)
{
::dbtools::OPropertyMap& rPropMap = OMetaConnection::getPropMap();
::rtl::OUString aSchema,aTable;
::com::sun::star::uno::Any Catalog(m_pIndex->getTable()->getPropertyValue(rPropMap.getNameByIndex(PROPERTY_ID_CATALOGNAME)));
m_pIndex->getTable()->getPropertyValue(rPropMap.getNameByIndex(PROPERTY_ID_SCHEMANAME)) >>= aSchema;
m_pIndex->getTable()->getPropertyValue(rPropMap.getNameByIndex(PROPERTY_ID_NAME)) >>= aTable;
Reference< XResultSet > xResult = m_pIndex->getTable()->getConnection()->getMetaData()->getIndexInfo(
m_pIndex->getTable()->getPropertyValue(rPropMap.getNameByIndex(PROPERTY_ID_CATALOGNAME)),
aSchema,aTable,sal_False,sal_False);
Catalog, aSchema, aTable, sal_False, sal_False);
sal_Bool bAsc = sal_True;
if ( xResult.is() )
......@@ -68,8 +68,7 @@ sdbcx::ObjectType OIndexColumns::createObject(const ::rtl::OUString& _rName)
}
xResult = m_pIndex->getTable()->getConnection()->getMetaData()->getColumns(
m_pIndex->getTable()->getPropertyValue(rPropMap.getNameByIndex(PROPERTY_ID_CATALOGNAME)),
aSchema,aTable,_rName);
Catalog, aSchema, aTable, _rName);
sdbcx::ObjectType xRet;
if ( xResult.is() )
......
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