MySQL Lists are EOL. Please join:

List:MySQL++« Previous MessageNext Message »
From:Jim Wallace Date:January 28 2009 3:45am
Subject:RE: storein with parameters
View as plain text  
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

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:
To unsubscribe:

RELEASE: v3.0.5Warren Young7 Aug
  • query.str() in template query -- help!Jim Wallace28 Jan
    • RE: query.str() in template query -- <blush>Jim Wallace28 Jan
      • Re: query.str() in template query -- <blush>Warren Young28 Jan
        • storein with parametersJim Wallace28 Jan
          • Re: storein with parametersWarren Young28 Jan
            • RE: storein with parametersJim Wallace28 Jan
              • Re: storein with parametersWarren Young28 Jan
            • Question about BadQueryJim Wallace28 Jan
              • Re: Question about BadQueryWarren Young28 Jan
RE: RELEASE: v3.0.5Bernard8 Aug
  • Re: RELEASE: v3.0.5Warren Young8 Aug
    • Re: RELEASE: v3.0.5Alex9 Aug
RE: Question about BadQueryJim Wallace28 Jan
RE: Question about BadQueryDale Stewart28 Jan
RE: Question about BadQueryDale Stewart28 Jan
  • Re: Question about BadQueryWarren Young28 Jan