stan
stan

Reputation: 4995

UseQueryResult is not a member of mysqlpp

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

Upvotes: 0

Views: 481

Answers (1)

Josh Townzen
Josh Townzen

Reputation: 1348

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.

Upvotes: 1

Related Questions