Author: wyoung
Date: Tue Jun 19 06:48:50 2007
New Revision: 1564
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1564&view=rev
Log:
Better handling of exception suppression in Query::for_each() and
Query::store_if().
Modified:
trunk/lib/query.h
Modified: trunk/lib/query.h
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/query.h?rev=1564&r1=1563&r2=1564&view=diff
==============================================================================
--- trunk/lib/query.h (original)
+++ trunk/lib/query.h Tue Jun 19 06:48:50 2007
@@ -385,7 +385,7 @@
{
mysqlpp::ResUse res = use(query);
if (res) {
- mysqlpp::NoExceptions ne(*this);
+ mysqlpp::NoExceptions ne(res);
while (mysqlpp::Row row = res.fetch_row()) {
fn(row);
}
@@ -416,9 +416,9 @@
template <class Sequence, typename Function>
Function store_if(Sequence& seq, const SQLString& query, Function fn)
{
- mysqlpp::NoExceptions ne(*this);
mysqlpp::ResUse res = use(query);
if (res) {
+ mysqlpp::NoExceptions ne(res);
while (mysqlpp::Row row = res.fetch_row()) {
if (fn(row)) {
seq.push_back(row);
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits