Fix assert statement in Poco Data documentation

This commit is contained in:
Pascal Bach 2014-02-27 09:58:49 +01:00
parent 35e0bd5560
commit 4c6f75ba41

View File

@ -965,7 +965,7 @@ The template specialization must implement the following methods:
public: public:
static void bind(std::size_t pos, const Person& obj, AbstractBinder::Ptr pBinder) static void bind(std::size_t pos, const Person& obj, AbstractBinder::Ptr pBinder)
{ {
poco_assert_dbg (pBinder != 0); poco_assert_dbg (!pBinder.isNull());
// the table is defined as Person (FirstName VARCHAR(30), lastName VARCHAR, SocialSecNr INTEGER(3)) // the table is defined as Person (FirstName VARCHAR(30), lastName VARCHAR, SocialSecNr INTEGER(3))
// Note that we advance pos by the number of columns the datatype uses! For string/int this is one. // Note that we advance pos by the number of columns the datatype uses! For string/int this is one.
TypeHandler<std::string>::bind(pos++, obj.getFirstName(), pBinder); TypeHandler<std::string>::bind(pos++, obj.getFirstName(), pBinder);
@ -980,7 +980,7 @@ The template specialization must implement the following methods:
static void prepare(std::size_t pos, const Person&amp; obj, AbstractPreparation::Ptr pPrepare) static void prepare(std::size_t pos, const Person&amp; obj, AbstractPreparation::Ptr pPrepare)
{ {
poco_assert_dbg (pBinder != 0); poco_assert_dbg (!pPrepare.isNull());
// the table is defined as Person (FirstName VARCHAR(30), lastName VARCHAR, SocialSecNr INTEGER(3)) // the table is defined as Person (FirstName VARCHAR(30), lastName VARCHAR, SocialSecNr INTEGER(3))
// Note that we advance pos by the number of columns the datatype uses! For string/int this is one. // Note that we advance pos by the number of columns the datatype uses! For string/int this is one.
TypeHandler<std::string>::prepare(pos++, obj.getFirstName(), pPrepare); TypeHandler<std::string>::prepare(pos++, obj.getFirstName(), pPrepare);
@ -991,7 +991,7 @@ The template specialization must implement the following methods:
static void extract(std::size_t pos, Person&amp; obj, const Person&amp; defVal, AbstractExtractor::Ptr pExt) static void extract(std::size_t pos, Person&amp; obj, const Person&amp; defVal, AbstractExtractor::Ptr pExt)
/// obj will contain the result, defVal contains values we should use when one column is NULL /// obj will contain the result, defVal contains values we should use when one column is NULL
{ {
poco_assert_dbg (pExt != 0); poco_assert_dbg (!pExt.isNull());
std::string firstName; std::string firstName;
std::string lastName; std::string lastName;
Poco::UInt64 socialSecNr = 0; Poco::UInt64 socialSecNr = 0;