Author: wyoung
Date: Tue Mar 18 06:42:47 2008
New Revision: 2246
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=2246&view=rev
Log:
Small example tweak, just to test something we don't otherwise do in the
examples. No test result change.
Modified:
trunk/examples/tquery3.cpp
Modified: trunk/examples/tquery3.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/tquery3.cpp?rev=2246&r1=2245&r2=2246&view=diff
==============================================================================
--- trunk/examples/tquery3.cpp (original)
+++ trunk/examples/tquery3.cpp Tue Mar 18 06:42:47 2008
@@ -59,7 +59,7 @@
if (mysqlpp::StoreQueryResult res = query.store(80)) {
cout << "Stuff we have a lot of in stock:" << endl;
for (size_t i = 0; i < res.num_rows(); ++i) {
- cout << '\t' << res[i][0] << endl;
+ cout << '\t' << res[i]["item"] << endl;
}
}
else {
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits