Data documentation update

This commit is contained in:
Aleksandar Fabijanic
2012-09-25 23:39:33 +00:00
parent a4e100f286
commit 0c05ec4701
3 changed files with 61 additions and 63 deletions

View File

@@ -259,7 +259,7 @@ Extract now changes to:
virtual void prepare(std::size_t pos, const BLOB&) = 0;
----
Note that it is recommended to prepare a statement only once in the compileImpl of <[StatementImpl]>. The AbstractPrepare objects (which make use of <[AbstractPreparation]>
Note that it is recommended to prepare a statement only once in the compileImpl of <[StatementImpl]>. The AbstractPreparator objects (which make use of <[AbstractPreparation]>
can be created by iterating over the Extractor objects of the StatementImpl:
Poco::Data::AbstractExtractingVec::iterator it = extractings().begin();
@@ -267,7 +267,7 @@ can be created by iterating over the Extractor objects of the StatementImpl:
std::size_t pos = 0; // sqlite starts with pos 0 for results! your DB maybe with 1
for (; it != itEnd; ++it)
{
AbstractPrepare* pPrep = (*it)->createPrepareObject(pPreparation, pos);
AbstractPreparator* pPrep = (*it)->createPrepareObject(pPreparation, pos);
_prepareVec.push_back(pPrep);
(*it)->extract(pos);
pos += (*it)->numOfColumnsHandled();