diff options
Diffstat (limited to 'connectivity/source/drivers/mysql/YCatalog.cxx')
-rw-r--r-- | connectivity/source/drivers/mysql/YCatalog.cxx | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/connectivity/source/drivers/mysql/YCatalog.cxx b/connectivity/source/drivers/mysql/YCatalog.cxx index 37e818ad4a9a..7c5f86f2634d 100644 --- a/connectivity/source/drivers/mysql/YCatalog.cxx +++ b/connectivity/source/drivers/mysql/YCatalog.cxx @@ -85,22 +85,6 @@ void OMySQLCatalog::refreshViews() Sequence< ::rtl::OUString > aTypes(1); aTypes[0] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("VIEW")); -/* - sal_Bool bSupportsViews = sal_False; - try - { - Reference<XResultSet> xRes = m_xMetaData->getTableTypes(); - Reference<XRow> xRow(xRes,UNO_QUERY); - while ( !bSupportsViews && xRow.is() && xRes->next() ) - { - ::rtl::OUString sTableType( xRow->getString( 1 ) ); - bSupportsViews = sTableType.equalsIgnoreAsciiCase( aTypes[0] ); - } - } - catch(const SQLException&) - { - } -*/ // let's simply assume the server is new enough to support views. Current drivers // as of this writing might not return the proper information in getTableTypes, so // don't rely on it. |