From ccf0e78b6a61c7a1032e3fda81e389672b7fb95f Mon Sep 17 00:00:00 2001 From: Alex Fabijanic Date: Mon, 24 Nov 2014 19:37:16 -0600 Subject: [PATCH] Data documentation sample code outdated #620 --- Data/doc/00200-DataUserManual.page | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Data/doc/00200-DataUserManual.page b/Data/doc/00200-DataUserManual.page index 5dad5b80e..3b28dbc8d 100644 --- a/Data/doc/00200-DataUserManual.page +++ b/Data/doc/00200-DataUserManual.page @@ -963,14 +963,14 @@ The template specialization must implement the following methods: class TypeHandler { 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, AbstractBinder::Direction dir) { poco_assert_dbg (!pBinder.isNull()); // 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. - TypeHandler::bind(pos++, obj.getFirstName(), pBinder); - TypeHandler::bind(pos++, obj.getLastName(), pBinder); - TypeHandler::bind(pos++, obj.getSocialSecNr(), pBinder); + TypeHandler::bind(pos++, obj.getFirstName(), pBinder, dir); + TypeHandler::bind(pos++, obj.getLastName(), pBinder, dir); + TypeHandler::bind(pos++, obj.getSocialSecNr(), pBinder, dir); } static std::size_t size() @@ -978,7 +978,7 @@ The template specialization must implement the following methods: return 3; // we handle three columns of the Table! } - static void prepare(std::size_t pos, const Person& obj, AbstractPreparation::Ptr pPrepare) + static void prepare(std::size_t pos, const Person& obj, AbstractPreparator::Ptr pPrepare) { poco_assert_dbg (!pPrepare.isNull()); // the table is defined as Person (FirstName VARCHAR(30), lastName VARCHAR, SocialSecNr INTEGER(3))