- Code: Select all
std::string aName;
std::string match("Peter");
ses << "SELECT NAME FROM FORENAME WHERE NAME=:name", into(aName), use(match), now;
poco_assert (aName == match);
will throw a Extraction Error exception.
but this
- Code: Select all
Poco::Uint32 count;
std::string match("Peter");
ses << "SELECT count(*) FROM FORENAME WHERE NAME=:name", into(count), use(match), now;
will run successfully,why?





