mysqlpp

Is it safe to convert a mysqlpp::sql_blob to a std::string?

I'm grabbing some binary data out of my MySQL database. It comes out as a mysqlpp::sql_blob type. It just so happens that this BLOB is a serialized Google Protobuf. I need to de-serialize it so that I can access it normally. This gives a compile error, since ParseFromString() is not intended for mysqlpp:sql_blob types: protobuf.Pars...

Converting mysqlpp::String to C++ int

Ok, I'm relatively new to using the mysqlpp library that is used in Visual Studio to connect to a MySQL database and am having trouble trying to convert a vector of type mysqlpp::String to a vector of type int. Does anyone have any experience with mysqlpp and would mind helping me out a little? I've posted an example of what I'm basicall...

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++...