mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-29 12:18:01 +01:00
[SF 2593784] SVN trunk RowIterator
This commit is contained in:
@@ -450,8 +450,7 @@ inline Data_API std::ostream& operator << (std::ostream &os, const RecordSet& rs
|
||||
|
||||
inline std::size_t RecordSet::totalRowCount() const
|
||||
{
|
||||
poco_assert (extractions().size());
|
||||
return extractions()[0].get()->numOfRowsHandled();
|
||||
return rowsExtracted();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -369,6 +369,10 @@ public:
|
||||
const std::string& getStorage() const;
|
||||
/// Returns the internal storage type for the stamement.
|
||||
|
||||
std::size_t rowsExtracted(int dataSet = -1) const;
|
||||
/// Returns the number of rows returned for current data set.
|
||||
/// Default value (-1) indicates current data set (if any).
|
||||
|
||||
std::size_t extractionCount() const;
|
||||
/// Returns the number of extraction storage buffers associated
|
||||
/// with the current data set.
|
||||
@@ -701,6 +705,12 @@ inline std::size_t Statement::extractionCount() const
|
||||
}
|
||||
|
||||
|
||||
inline std::size_t Statement::rowsExtracted(int dataSet) const
|
||||
{
|
||||
return _pImpl->rowsExtracted(dataSet);
|
||||
}
|
||||
|
||||
|
||||
inline std::size_t Statement::dataSetCount() const
|
||||
{
|
||||
return _pImpl->dataSetCount();
|
||||
|
||||
@@ -218,9 +218,13 @@ protected:
|
||||
virtual AbstractBinder& binder() = 0;
|
||||
/// Returns the concrete binder used by the statement.
|
||||
|
||||
int columnsExtracted() const;
|
||||
std::size_t columnsExtracted() const;
|
||||
/// Returns the number of columns that the extractors handle.
|
||||
|
||||
std::size_t rowsExtracted(int dataSet = -1) const;
|
||||
/// Returns the number of rows returned for current data set.
|
||||
/// Default value (-1) indicates current data set (if any).
|
||||
|
||||
const AbstractBindingVec& bindings() const;
|
||||
/// Returns the bindings.
|
||||
|
||||
@@ -486,7 +490,7 @@ inline AbstractExtractionVec& StatementImpl::extractions()
|
||||
}
|
||||
|
||||
|
||||
inline int StatementImpl::columnsExtracted() const
|
||||
inline std::size_t StatementImpl::columnsExtracted() const
|
||||
{
|
||||
poco_assert (_curDataSet < _columnsExtracted.size());
|
||||
return _columnsExtracted[_curDataSet];
|
||||
|
||||
Reference in New Issue
Block a user