look for concurrency
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
*
|
||||
* $RCSfile: RowSetCache.cxx,v $
|
||||
*
|
||||
* $Revision: 1.19 $
|
||||
* $Revision: 1.20 $
|
||||
*
|
||||
* last change: $Author: oj $ $Date: 2001-01-04 14:30:37 $
|
||||
* last change: $Author: oj $ $Date: 2001-01-09 15:38:59 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
@@ -92,6 +92,9 @@
|
||||
#ifndef _COM_SUN_STAR_SDBCX_KEYTYPE_HPP_
|
||||
#include <com/sun/star/sdbcx/KeyType.hpp>
|
||||
#endif
|
||||
#ifndef _COM_SUN_STAR_SDBC_RESULTSETCONCURRENCY_HPP_
|
||||
#include <com/sun/star/sdbc/ResultSetConcurrency.hpp>
|
||||
#endif
|
||||
#ifndef _COM_SUN_STAR_SDBCX_PRIVILEGE_HPP_
|
||||
#include <com/sun/star/sdbcx/Privilege.hpp>
|
||||
#endif
|
||||
@@ -253,6 +256,10 @@ ORowSetCache::ORowSetCache(const Reference< XResultSet >& _xRs,
|
||||
}
|
||||
|
||||
}
|
||||
// last check
|
||||
if(xProp->getPropertySetInfo()->hasPropertyByName(PROPERTY_RESULTSETCONCURRENCY) &&
|
||||
::comphelper::getINT32(xProp->getPropertyValue(PROPERTY_RESULTSETCONCURRENCY)) == ResultSetConcurrency::READ_ONLY)
|
||||
m_nPrivileges = Privilege::SELECT;
|
||||
|
||||
setMaxRowSize(m_nFetchSize);
|
||||
}
|
||||
@@ -1558,6 +1565,9 @@ void SAL_CALL ORowSetCache::clearWarnings( ) throw(SQLException, RuntimeExcepti
|
||||
/*------------------------------------------------------------------------
|
||||
|
||||
$Log: not supported by cvs2svn $
|
||||
Revision 1.19 2001/01/04 14:30:37 oj
|
||||
check columns
|
||||
|
||||
Revision 1.18 2000/12/14 11:41:19 oj
|
||||
#82061# beforeFirst called everytime
|
||||
|
||||
|
Reference in New Issue
Block a user