Author: mysqlpp
Date: Wed Dec 23 13:58:01 2009
New Revision: 2595
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=2595&view=rev
Log:
Query deep copy now supports tqueries. Patch by Steven Van Ingelgem,
small tweaks by me.
Modified:
trunk/lib/query.cpp
Modified: trunk/lib/query.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/query.cpp?rev=2595&r1=2594&r2=2595&view=diff
==============================================================================
--- trunk/lib/query.cpp (original)
+++ trunk/lib/query.cpp Wed Dec 23 13:58:01 2009
@@ -72,10 +72,7 @@
#else
std::ostream(0),
#endif
-OptionalExceptions(q.throw_exceptions()),
-template_defaults(q.template_defaults),
-conn_(q.conn_),
-copacetic_(q.copacetic_)
+OptionalExceptions(q.throw_exceptions())
{
// We don't copy stream buffer or template query stuff from the other
// Query on purpose. This isn't a copy ctor so much as a way to
@@ -86,7 +83,7 @@
imbue(std::locale::classic());
// Copy the other query as best we can
- *this << q.sbuffer_.str();
+ operator =(q);
}
@@ -252,7 +249,12 @@
template_defaults = rhs.template_defaults;
conn_ = rhs.conn_;
copacetic_ = rhs.copacetic_;
+
*this << rhs.sbuffer_.str();
+
+ parse_elems_ = rhs.parse_elems_;
+ parsed_names_ = rhs.parsed_names_;
+ parsed_nums_ = rhs.parsed_nums_;
return *this;
}
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits