Author: wyoung
Date: Thu Jul 12 05:11:32 2007
New Revision: 1674
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1674&view=rev
Log:
Added a query.reset() in resetdb. It wasn't strictly needed earlier,
because Query would do auto-reset in some situations. That's going away
in v3. (At least, as a parameter to query execution functions. Maybe
we'll bring this feature back for all queries, so query::reset() is
pointless.)
Modified:
trunk/examples/resetdb.cpp
Modified: trunk/examples/resetdb.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/resetdb.cpp?rev=1674&r1=1673&r2=1674&view=diff
==============================================================================
--- trunk/examples/resetdb.cpp (original)
+++ trunk/examples/resetdb.cpp Thu Jul 12 05:11:32 2007
@@ -124,6 +124,7 @@
// Set up the template query to insert the data. The parse()
// call tells the query object that this is a template and
// not a literal query string.
+ query.reset();
query << "insert into %5:table values (%0q, %1q, %2, %3, %4q)";
query.parse();
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits