UseQueryResult is not a member of mysqlpp

480 views Asked by At

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

1

There are 1 answers

0
Josh Townzen On BEST ANSWER

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.