|
From: Rainer B. <us...@mu...> - 2008-06-14 14:07:55
|
Hello,
I tried to run the following code (derived from the docs example):
std::vector<Person> v_person(100);
sql << "select * from person", into(v_person);
But the data passed in the <values> parameter to
type_conversion<Person>::from_base() is rubbish. Am I doing anything
wrong or is this not supported?
BTW, the following code works as expected:
rowset<Person> rs_p = (sql.prepare << "select * from person");
for (rowset<Person>::const_iterator it = rs_p.begin(); it != rs_p.end(); ++it)
{
... do something ...
}
Rainer
|