summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/dlg/AdabasStat.cxx
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2001-05-28 05:50:20 +0000
committerOcke Janssen <oj@openoffice.org>2001-05-28 05:50:20 +0000
commit00d6ee8b532b6429079a0a201136007c92019c31 (patch)
tree6e288e2a6e9beed63d320e8b62733aac5d460e93 /dbaccess/source/ui/dlg/AdabasStat.cxx
parent3f03962c14a6c97234f9dd97fed67fac6df67a2c (diff)
#86914# fetch ints
Diffstat (limited to 'dbaccess/source/ui/dlg/AdabasStat.cxx')
-rw-r--r--dbaccess/source/ui/dlg/AdabasStat.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/dbaccess/source/ui/dlg/AdabasStat.cxx b/dbaccess/source/ui/dlg/AdabasStat.cxx
index 85b8aa6bd2f9..b33dc74b6ecc 100644
--- a/dbaccess/source/ui/dlg/AdabasStat.cxx
+++ b/dbaccess/source/ui/dlg/AdabasStat.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: AdabasStat.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: tbe $ $Date: 2001-05-14 09:45:07 $
+ * last change: $Author: oj $ $Date: 2001-05-28 06:50:20 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -148,7 +148,7 @@ OAdabasStatistics::OAdabasStatistics( Window* pParent,
Reference<XPropertySet> xProp(m_xConnection,UNO_QUERY);
aStmt += ::dbtools::quoteTableName(m_xConnection->getMetaData(),sTable);
- aStmt += ::rtl::OUString::createFromAscii(".SERVERDBSTATISTICS");
+ aStmt += ::rtl::OUString::createFromAscii(".\"SERVERDBSTATISTICS\"");
xStmt = m_xConnection->createStatement();
xRes = xStmt->executeQuery(aStmt);
@@ -158,8 +158,8 @@ OAdabasStatistics::OAdabasStatistics( Window* pParent,
// first the db sizes
if(xRes.is() && xRes->next())
{
- double nUsedPages = xRow->getDouble(1) / 256;
- double nFreePages = xRow->getDouble(2) / 256;
+ double nUsedPages = xRow->getInt(1) / 256;
+ double nFreePages = xRow->getInt(2) / 256;
m_ET_SIZE.SetText(::rtl::OUString::valueOf((INT32)nUsedPages));
m_ET_FREESIZE.SetText(::rtl::OUString::valueOf((INT32)nFreePages));
@@ -172,7 +172,7 @@ OAdabasStatistics::OAdabasStatistics( Window* pParent,
// then the db files
aStmt = ::rtl::OUString::createFromAscii("SELECT DEVSPACENAME FROM ");
aStmt += ::dbtools::quoteTableName(m_xConnection->getMetaData(),sTable);
- aStmt += ::rtl::OUString::createFromAscii(".DATADEVSPACES");
+ aStmt += ::rtl::OUString::createFromAscii(".\"DATADEVSPACES\"");
xRes = xStmt->executeQuery(aStmt);
xRow = Reference<XRow>(xRes,UNO_QUERY);
@@ -209,13 +209,13 @@ OAdabasStatistics::OAdabasStatistics( Window* pParent,
::comphelper::disposeComponent(xRes);
::comphelper::disposeComponent(xStmt);
}
- catch(SQLException& e)
+ catch(const SQLException& e)
{
::comphelper::disposeComponent(xRes);
::comphelper::disposeComponent(xStmt);
showError(SQLExceptionInfo(e),pParent,_xFactory);
}
- catch(Exception&)
+ catch(const Exception&)
{
::comphelper::disposeComponent(xRes);
::comphelper::disposeComponent(xStmt);