Thank you, Warren. That looks like it fixed it. (and to your comment
about one parameter compiling, no I don't know if it worked since I
couldn't finish compiling. I'm guessing it didn't)
Let me take this opportunity to say what a great job you do with this
library. Your support on this list is just fantastic.
-----Original Message-----
From: Warren Young [mailto:mysqlpp@stripped]
Sent: Tuesday, January 27, 2009 9:28 PM
To: MySQL++ Mailing List
Subject: Re: storein with parameters
Jim Wallace wrote:
> If I have just one parameter,
> it compiles ok
Are you sure it's doing what you want, or just that it compiles?
> if more than one, it files to compile.
Yes, a function got removed in 3.0 for reasons that escape me. Try this
patch and let me know whether it fixes the problem, and doesn't cause
any other problems:
Index: lib/query.h
===================================================================
--- lib/query.h (revision 2432)
+++ lib/query.h (working copy)
@@ -924,6 +924,12 @@
storein_set(con, s);
}
+ template <class T>
+ void storein(T& con, SQLQueryParms& p)
+ {
+ storein(con, str(p));
+ }
+
/// \brief Replace an existing row's data with new data.
///
/// This function builds an UPDATE SQL query using the new row
data
That last line got wrapped by my mailer, so fix it if you patch(1) your
copy, instead of cut and pasting it.
--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsub=1