List:MySQL++« Previous MessageNext Message »
From:ALeX Date:October 24 2007 10:29am
Subject:Problem with "mysqlpp:Result"
View as plain text  
I have this little problem, if i use this code of exemple:
if (res) {
		mysqlpp::Row row;
		mysqlpp::Row::size_type i;
		for (i = 0; row = res.at(i); ++i) {
			cout << '\t' << row.at(0) << endl;
		}
	}
My executable stop with "This application has requested the Runtime to
terminate it in an unusual way.Please contact the application's
support team for more information."

I solve with this trick...
if (res) {
   mysqlpp::Row row;
   mysqlpp::Row::size_type i;
   for (i = 0; i < res.size(); ++i){
       row = res.at(i);
  out << '\t' << row.at(0) << endl;
   }

My question is why the first code rise errors?
Thread
Problem with "mysqlpp:Result"ALeX24 Oct
  • Re: Problem with "mysqlpp:Result"Warren Young24 Oct
  • Re: Problem with "mysqlpp:Result"Guowen Han24 Oct