Question

That's the error I get when I run this code :

if(mysqlpp::UseQueryResult  res = conn.query(sql).use())

Whats more interesting is that the next line doesn't have any problems

while(mysqlpp::Row row = res.fetch_row())

Really driving me crazy. I've even manually included result.h

I tried all combos of these

include result.h, mysql++.h, connection.h

Was it helpful?

Solution

Is it possible that you're using an old version of MySQL++? The StoreQueryResult class used to be called Result before version 3.0.0.

Edit: Er... and UseQueryResult used to be called ResUse, which is a bit more relevant to your error message.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top