On Aug 11, 2008, at 1:06 PM, jujulj wrote:
> mysqlpp::Query query = conn.query("select fingerprint,
> count(*) from fingerprints group by fingerprint order by
Does it work if you enable multiqueries (see examples/multiquery.cpp)
and change the query to: "select count(*) from fingerprints; select
fingerprint from fingerprints order by fingerprint" ?
> doing it using directly the C API works.
Can you post the code, so I can compare the way the two work?
> I'm going to use it instead, and do the count and sort in C++...
I understand letting the database engine do the sort, but I don't
understand why it's useful to let it do the counting, unless you do it
like I show above, where the count comes in ahead of the rows. If the
count comes in after, it doesn't tell you anything you don't already