summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorAndreas Bille <abi@openoffice.org>2001-05-14 07:49:59 +0000
committerAndreas Bille <abi@openoffice.org>2001-05-14 07:49:59 +0000
commit6bf02ccf5fa8f446aaa31a81ea04cebed535a586 (patch)
treeec3e16087f1fb36a84d3bf69fd289eccb0acbeab /ucb
parent1a52733bef9bea5b7113831ca7747d73bf8f6de1 (diff)
Positioning before resultsetrows means positoning on beforeFirst ( as specified by new docu )
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/file/filrset.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/ucb/source/ucp/file/filrset.cxx b/ucb/source/ucp/file/filrset.cxx
index b11bc9a66ed0..c76ef7984c4d 100644
--- a/ucb/source/ucp/file/filrset.cxx
+++ b/ucb/source/ucp/file/filrset.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: filrset.cxx,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: abi $ $Date: 2001-05-14 08:17:51 $
+ * last change: $Author: abi $ $Date: 2001-05-14 08:49:59 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -641,9 +641,6 @@ XResultSet_impl::getRow(
sal_Bool SAL_CALL XResultSet_impl::absolute( sal_Int32 row )
throw( sdbc::SQLException, uno::RuntimeException)
{
- if( !row )
- throw sdbc::SQLException();
-
if( row >= 0 )
{
m_nRow = row - 1;
@@ -655,6 +652,8 @@ sal_Bool SAL_CALL XResultSet_impl::absolute( sal_Int32 row )
{
last();
m_nRow += ( row + 1 );
+ if( m_nRow < -1 )
+ m_nRow = -1;
}
return 0<= m_nRow && m_nRow < m_aItems.size();