diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2012-11-02 11:13:12 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2012-11-02 11:13:12 +0100 |
commit | faddfd35e2c11554a6892300c3d3540ea4e6be22 (patch) | |
tree | 2fadb1b22e33cc03893a3770ed8b68750f5523e8 /connectivity | |
parent | Revert "detect even more memory mismanagement on glibc" (diff) | |
download | core-faddfd35e2c11554a6892300c3d3540ea4e6be22.tar.gz core-faddfd35e2c11554a6892300c3d3540ea4e6be22.zip |
connectivity: port mork driver to new OColumn, too
Change-Id: I2433bd2cc289b9ded1c825ea3dbe1db2ccf4bae9
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/mork/MColumns.cxx | 13 | ||||
-rw-r--r-- | connectivity/source/drivers/mork/MPreparedStatement.cxx | 5 |
2 files changed, 14 insertions, 4 deletions
diff --git a/connectivity/source/drivers/mork/MColumns.cxx b/connectivity/source/drivers/mork/MColumns.cxx index 852bb4d4c012..d35151d74149 100644 --- a/connectivity/source/drivers/mork/MColumns.cxx +++ b/connectivity/source/drivers/mork/MColumns.cxx @@ -42,8 +42,12 @@ using namespace ::com::sun::star::lang; sdbcx::ObjectType OColumns::createObject(const ::rtl::OUString& _rName) { - Reference< XResultSet > xResult = m_pTable->getConnection()->getMetaData()->getColumns(Any(), - m_pTable->getSchema(),m_pTable->getTableName(),_rName); + const Any aCatalog; + const ::rtl::OUString sCatalogName; + const ::rtl::OUString sSchemaName(m_pTable->getSchema()); + const ::rtl::OUString sTableName(m_pTable->getTableName()); + Reference< XResultSet > xResult = m_pTable->getConnection()->getMetaData()->getColumns( + aCatalog, sSchemaName, sTableName, _rName); sdbcx::ObjectType xRet = NULL; if(xResult.is()) @@ -65,7 +69,10 @@ sdbcx::ObjectType OColumns::createObject(const ::rtl::OUString& _rName) nPrec, xRow->getInt(9), nType, - sal_False,sal_False,sal_False,sal_True); + sal_False,sal_False,sal_False,sal_True, + sCatalogName, + sSchemaName, + sTableName)); xRet = pRet; break; } diff --git a/connectivity/source/drivers/mork/MPreparedStatement.cxx b/connectivity/source/drivers/mork/MPreparedStatement.cxx index c34de94576e1..803b9606b1d0 100644 --- a/connectivity/source/drivers/mork/MPreparedStatement.cxx +++ b/connectivity/source/drivers/mork/MPreparedStatement.cxx @@ -442,7 +442,10 @@ size_t OPreparedStatement::AddParameter(OSQLParseNode * pParameter, const Refere ,sal_False ,sal_False ,sal_False - ,m_pSQLIterator->isCaseSensitive()); + ,m_pSQLIterator->isCaseSensitive() + ,::rtl::OUString() + ,::rtl::OUString() + ,::rtl::OUString()); m_xParamColumns->get().push_back(xParaColumn); return nParameter; } |