summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2001-07-24 12:18:40 +0000
committerOcke Janssen <oj@openoffice.org>2001-07-24 12:18:40 +0000
commitb1ea1d305bdb244f307fbc85fcacc0a6864a8bc6 (patch)
tree5dd2c29829de9eb66d1dd23985a5daf34db7f557 /connectivity/source/drivers
parent417093bb58358abb4c5692d265c2136e224c1c36 (diff)
#89430# move ORowSetValue into dbtools
Diffstat (limited to 'connectivity/source/drivers')
-rw-r--r--connectivity/source/drivers/dbase/DDatabaseMetaData.cxx6
-rw-r--r--connectivity/source/drivers/file/FResultSet.cxx8
-rw-r--r--connectivity/source/drivers/flat/EResultSet.cxx8
-rw-r--r--connectivity/source/drivers/odbc/OResultSet.cxx18
4 files changed, 23 insertions, 17 deletions
diff --git a/connectivity/source/drivers/dbase/DDatabaseMetaData.cxx b/connectivity/source/drivers/dbase/DDatabaseMetaData.cxx
index f74fc1c7a1f2..521af9bfe8cc 100644
--- a/connectivity/source/drivers/dbase/DDatabaseMetaData.cxx
+++ b/connectivity/source/drivers/dbase/DDatabaseMetaData.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: DDatabaseMetaData.cxx,v $
*
- * $Revision: 1.21 $
+ * $Revision: 1.22 $
*
- * last change: $Author: oj $ $Date: 2001-07-17 10:38:26 $
+ * last change: $Author: oj $ $Date: 2001-07-24 13:17:51 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -97,7 +97,7 @@
#include "dbase/DIndex.hxx"
#endif
#ifndef _CONNECTIVITY_FILE_VALUE_HXX_
-#include "FValue.hxx"
+#include "connectivity/FValue.hxx"
#endif
#ifndef _COMPHELPER_EXTRACT_HXX_
#include <comphelper/extract.hxx>
diff --git a/connectivity/source/drivers/file/FResultSet.cxx b/connectivity/source/drivers/file/FResultSet.cxx
index 2fbc35df0789..0e05a8452403 100644
--- a/connectivity/source/drivers/file/FResultSet.cxx
+++ b/connectivity/source/drivers/file/FResultSet.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: FResultSet.cxx,v $
*
- * $Revision: 1.64 $
+ * $Revision: 1.65 $
*
- * last change: $Author: oj $ $Date: 2001-07-04 14:27:53 $
+ * last change: $Author: oj $ $Date: 2001-07-24 13:17:52 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -281,11 +281,7 @@ sal_Int32 SAL_CALL OResultSet::findColumn( const ::rtl::OUString& columnName ) t
sal_Int32 i = 1;
for(;i<=nLen;++i)
if(xMeta->isCaseSensitive(i) ? columnName == xMeta->getColumnName(i) :
-#if SUPD > 630
columnName.equalsIgnoreAsciiCase(xMeta->getColumnName(i)))
-#else
- columnName.equalsIgnoreCase(xMeta->getColumnName(i)))
-#endif
break;
return i;
}
diff --git a/connectivity/source/drivers/flat/EResultSet.cxx b/connectivity/source/drivers/flat/EResultSet.cxx
index 4a2452835f53..5ca899023e8a 100644
--- a/connectivity/source/drivers/flat/EResultSet.cxx
+++ b/connectivity/source/drivers/flat/EResultSet.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: EResultSet.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: oj $ $Date: 2001-05-31 06:11:57 $
+ * last change: $Author: oj $ $Date: 2001-07-24 13:17:53 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -184,7 +184,9 @@ sal_Bool SAL_CALL OFlatResultSet::moveRelativeToBookmark( const Any& bookmark,
m_bRowDeleted = m_bRowInserted = m_bRowUpdated = sal_False;
- return Move(OFileTable::FILE_BOOKMARK,comphelper::getINT32(bookmark)+rows,sal_True);
+ Move(OFileTable::FILE_BOOKMARK,comphelper::getINT32(bookmark),sal_False);
+
+ return relative(rows);
}
// -------------------------------------------------------------------------
diff --git a/connectivity/source/drivers/odbc/OResultSet.cxx b/connectivity/source/drivers/odbc/OResultSet.cxx
index 9d8b1a3464df..6e630cc445fb 100644
--- a/connectivity/source/drivers/odbc/OResultSet.cxx
+++ b/connectivity/source/drivers/odbc/OResultSet.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: OResultSet.cxx,v $
*
- * $Revision: 1.31 $
+ * $Revision: 1.32 $
*
- * last change: $Author: oj $ $Date: 2001-07-19 09:37:14 $
+ * last change: $Author: oj $ $Date: 2001-07-24 13:17:54 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -555,10 +555,18 @@ float SAL_CALL OResultSet::getFloat( sal_Int32 columnIndex ) throw(SQLException,
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
-
- columnIndex = mapColumn(columnIndex);
float nVal(0);
- OTools::getValue(m_pStatement->getOwnConnection(),m_aStatementHandle,columnIndex,SQL_C_FLOAT,m_bWasNull,**this,&nVal,sizeof nVal);
+ columnIndex = mapColumn(columnIndex);
+ if(m_bFetchData)
+ {
+ if(columnIndex > m_nLastColumnPos)
+ fillRow(columnIndex);
+
+ nVal = m_aRow[columnIndex];
+
+ }
+ else
+ OTools::getValue(m_pStatement->getOwnConnection(),m_aStatementHandle,columnIndex,SQL_C_FLOAT,m_bWasNull,**this,&nVal,sizeof nVal);
return nVal;
}
// -------------------------------------------------------------------------