Author: wyoung
Date: Thu Aug 9 20:32:02 2007
New Revision: 1741
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1741&view=rev
Log:
Comment fix
Modified:
trunk/lib/query.cpp
Modified: trunk/lib/query.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/query.cpp?rev=1741&r1=1740&r2=1741&view=diff
==============================================================================
--- trunk/lib/query.cpp (original)
+++ trunk/lib/query.cpp Thu Aug 9 20:32:02 2007
@@ -113,11 +113,10 @@
Query::execute(const SQLString& s)
{
if ((parse_elems_.size() == 2) && !template_defaults.processing_) {
- // We're a template query and we haven't gone through this path
- // before, so take s to be a lone parameter for the query.
- // We will come back through this function with a completed
- // query, but the processing_ flag will be reset, allowing us to
- // take the 'else' path, avoiding an infinite loop.
+ // We're a template query and this isn't a recursive call, so
+ // take s to be a lone parameter for the query. We will come
+ // back in here with a completed query, but the processing_
+ // flag will be set, allowing us to avoid an infinite loop.
AutoFlag<> af(template_defaults.processing_);
return execute(SQLQueryParms() << s);
}
@@ -403,11 +402,10 @@
Query::store(const SQLString& s)
{
if ((parse_elems_.size() == 2) && !template_defaults.processing_) {
- // We're a template query and we haven't gone through this path
- // before, so take s to be a lone parameter for the query.
- // We will come back through this function with a completed
- // query, but the processing_ flag will be reset, allowing us to
- // take the 'else' path, avoiding an infinite loop.
+ // We're a template query and this isn't a recursive call, so
+ // take s to be a lone parameter for the query. We will come
+ // back in here with a completed query, but the processing_
+ // flag will be set, allowing us to avoid an infinite loop.
AutoFlag<> af(template_defaults.processing_);
return store(SQLQueryParms() << s);
}
@@ -543,11 +541,10 @@
Query::use(const SQLString& s)
{
if ((parse_elems_.size() == 2) && !template_defaults.processing_) {
- // We're a template query and we haven't gone through this path
- // before, so take s to be a lone parameter for the query.
- // We will come back through this function with a completed
- // query, but the processing_ flag will be reset, allowing us to
- // take the 'else' path, avoiding an infinite loop.
+ // We're a template query and this isn't a recursive call, so
+ // take s to be a lone parameter for the query. We will come
+ // back in here with a completed query, but the processing_
+ // flag will be set, allowing us to avoid an infinite loop.
AutoFlag<> af(template_defaults.processing_);
return use(SQLQueryParms() << s);
}
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits