MySQL Lists are EOL. Please join:

List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:January 28 2009 2:27am
Subject:Re: storein with parameters
View as plain text  
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.
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