[Dsmyth-checkins] SF.net SVN: dsmyth:[568] trunk/MythTVReader/Shell/PropertyHandler/ MythTVProperti
Brought to you by:
tobbej
From: <to...@us...> - 2009-06-15 17:15:36
|
Revision: 568 http://dsmyth.svn.sourceforge.net/dsmyth/?rev=568&view=rev Author: tobbej Date: 2009-06-15 17:15:24 +0000 (Mon, 15 Jun 2009) Log Message: ----------- Simple fix for another mysql query bug Modified Paths: -------------- trunk/MythTVReader/Shell/PropertyHandler/MythTVProperties.cpp Modified: trunk/MythTVReader/Shell/PropertyHandler/MythTVProperties.cpp =================================================================== --- trunk/MythTVReader/Shell/PropertyHandler/MythTVProperties.cpp 2009-06-06 20:40:48 UTC (rev 567) +++ trunk/MythTVReader/Shell/PropertyHandler/MythTVProperties.cpp 2009-06-15 17:15:24 UTC (rev 568) @@ -209,8 +209,9 @@ CAtlStringW producers; mysqlpp::Row row; - for(mysqlpp::Row::size_type i=0;row=res.at(i);++i) + for(mysqlpp::Row::size_type i=0;i<res.num_rows();++i) { + row=res[i]; if(row["role"].compare("actor")==0) { actors+=CA2W(row["name"],CP_UTF8); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |