Author: wyoung
Date: Thu Jul 12 05:21:46 2007
New Revision: 1678
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1678&view=rev
Log:
Fixed up some inconsistencies in Query::str() and Query::preview().
They're supposed to be the same thing, with preview() always delegating
to str(). This is now the case. (No change in dtest.)
Modified:
trunk/lib/query.h
Modified: trunk/lib/query.h
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/query.h?rev=1678&r1=1677&r2=1678&view=diff
==============================================================================
--- trunk/lib/query.h (original)
+++ trunk/lib/query.h Thu Jul 12 05:21:46 2007
@@ -188,7 +188,7 @@
/// \param arg0 the value to substitute for the first template query
/// parameter
std::string preview(const SQLString& arg0)
- { return preview(SQLQueryParms() << arg0); }
+ { return str(SQLQueryParms() << arg0); }
/// \brief Return the query string currently in the buffer.
std::string preview(SQLQueryParms& p) { return str(p); }
@@ -202,7 +202,7 @@
/// \param arg0 the value to substitute for the first template query
/// parameter
std::string str(const SQLString& arg0)
- { return preview(SQLQueryParms() << arg0); }
+ { return str(SQLQueryParms() << arg0); }
/// \brief Get built query as a null-terminated C++ string
///
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits