multiple results (WIP, compiles and tests pass)

This commit is contained in:
Aleksandar Fabijanic
2007-11-04 23:33:07 +00:00
parent 9a5a611cc1
commit c3c422d87d
20 changed files with 643 additions and 99 deletions

View File

@@ -66,8 +66,10 @@ StatementImpl::StatementImpl(SessionImpl& rSession):
_rSession(rSession),
_storage(STORAGE_UNKNOWN_IMPL),
_ostr(),
_bindings()
_bindings(),
_curDataSet(0)
{
_extractors.resize(1);
}
@@ -332,4 +334,25 @@ const MetaColumn& StatementImpl::metaColumn(const std::string& name) const
}
Poco::UInt32 StatementImpl::activateNextDataSet()
{
if (_curDataSet + 1 < dataSetCount())
return ++_curDataSet;
else
throw InvalidAccessException("End of data sets reached.");
}
void StatementImpl::addExtract(AbstractExtraction* pExtraction)
{
poco_check_ptr (pExtraction);
Poco::UInt32 pos = pExtraction->position();
if (pos >= _extractors.size())
_extractors.resize(pos + 1);
_extractors[pos].push_back(pExtraction);
}
} } // namespace Poco::Data