Author: mysqlpp
Date: Wed Jun 22 03:27:10 2005
New Revision: 812
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=812&view=rev
Log:
Improved print_stock_row() in examples:
- Added an overload that takes a Row object, so code doesn't
have to bust it up into fields by itself.
- 'item' parameter of the field version was const char*, but
the obvious way to call that makes code subject to the
dangling pointer problem discussed on the mailing list a few
weeks back. So, made it a std::string to encourage correct
coding, and added a comment explaining why the code is that
way.
Modified:
trunk/examples/custom1.cpp
trunk/examples/simple2.cpp
trunk/examples/util.cpp
trunk/examples/util.h