| 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.
| Thread | ||
|---|---|---|
| • RELEASE: v3.0.5 | Warren Young | 7 Aug |
| • query.str() in template query -- help! | Jim Wallace | 28 Jan |
| • RE: query.str() in template query -- <blush> | Jim Wallace | 28 Jan |
| • Re: query.str() in template query -- <blush> | Warren Young | 28 Jan |
| • storein with parameters | Jim Wallace | 28 Jan |
| • Re: storein with parameters | Warren Young | 28 Jan |
| • RE: storein with parameters | Jim Wallace | 28 Jan |
| • Re: storein with parameters | Warren Young | 28 Jan |
| • Question about BadQuery | Jim Wallace | 28 Jan |
| • Re: Question about BadQuery | Warren Young | 28 Jan |
| • RE: RELEASE: v3.0.5 | Bernard | 8 Aug |
| • Re: RELEASE: v3.0.5 | Warren Young | 8 Aug |
| • Re: RELEASE: v3.0.5 | Alex | 9 Aug |
| • RE: Question about BadQuery | Jim Wallace | 28 Jan |
| • RE: Question about BadQuery | Dale Stewart | 28 Jan |
| • RE: Question about BadQuery | Dale Stewart | 28 Jan |
| • Re: Question about BadQuery | Warren Young | 28 Jan |
