summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/adabas/BPreparedStatement.cxx
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2001-08-02 09:49:44 +0000
committerOcke Janssen <oj@openoffice.org>2001-08-02 09:49:44 +0000
commit9ca50493ca0df6504dfb9f1d5f1ff7417b6be268 (patch)
tree58f98bbed35e6b57e9354bb072005202e3ceea40 /connectivity/source/drivers/adabas/BPreparedStatement.cxx
parent2670e929065fc325317bd5d2d40ef432b76d1000 (diff)
#89430# fixed float and double problems with adabas
Diffstat (limited to 'connectivity/source/drivers/adabas/BPreparedStatement.cxx')
-rw-r--r--connectivity/source/drivers/adabas/BPreparedStatement.cxx47
1 files changed, 7 insertions, 40 deletions
diff --git a/connectivity/source/drivers/adabas/BPreparedStatement.cxx b/connectivity/source/drivers/adabas/BPreparedStatement.cxx
index f96b34b351..b66c1d7486 100644
--- a/connectivity/source/drivers/adabas/BPreparedStatement.cxx
+++ b/connectivity/source/drivers/adabas/BPreparedStatement.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: BPreparedStatement.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: jl $ $Date: 2001-03-21 13:38:44 $
+ * last change: $Author: oj $ $Date: 2001-08-02 10:49:44 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -82,42 +82,9 @@ using namespace com::sun::star::io;
using namespace com::sun::star::util;
-Reference< XResultSet > OAdabasPreparedStatement::getResultSet (sal_Bool checkCount) throw( SQLException)
+// -----------------------------------------------------------------------------
+OResultSet* OAdabasPreparedStatement::createResulSet()
{
- ::osl::MutexGuard aGuard( m_aMutex );
- if (OStatement_BASE::rBHelper.bDisposed)
- throw DisposedException();
-
- if (m_xResultSet.get().is()) // if resultset already retrieved,
- {
- // throw exception to avoid sequence error
- throw SQLException(::rtl::OUString::createFromAscii("Invalid state for getResultSet"),*this,
- ::rtl::OUString(),0,Any());
- }
-
- OAdabasResultSet* pRs = NULL;
- sal_Int32 numCols = 1;
-
- // If we already know we have result columns, checkCount
- // is false. This is an optimization to prevent unneeded
- // calls to getColumnCount
-
- if (checkCount)
- numCols = getColumnCount ();
-
- // Only return a result set if there are result columns
-
- if (numCols > 0)
- {
- OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!");
- pRs = new OAdabasResultSet(m_aStatementHandle,this);
-
- // Save a copy of our last result set
- // Changed to save copy at getResultSet.
- //m_xResultSet = rs;
- }
- else
- clearMyResultSet ();
-
- return pRs;
-} \ No newline at end of file
+ return new OAdabasResultSet(m_aStatementHandle,this);
+}
+// -----------------------------------------------------------------------------