[prev in list] [next in list] [prev in thread] [next in thread]
List: mysql-plusplus
Subject: Re: quote manipulators
From: Matthias Dahl <mdml-sqlpp () designassembly ! de>
Date: 2003-10-31 11:07:19
[Download RAW message or body]
First of all, thanks Sinisa for your reply. A few hours ago I finally
figured how the quote manipulators work- especially that strings are
properly quoted... that's the main reason I'm needing them for. :-)
One last question. Is there a way to properly escape/quote strings in
template queries? One cannot use the quote manipulators on them and the
escape_string() method is obviously broken. Are there any other ways left
for me to properly escape/quote a string? Thanks in advance.
> That is not how quote is used. It is used like this:
>
> (std::ostream&)iDBQuery << "SELECT aa FROM b WHERE cc=" << quote << "test" << " \
> AND dumdidum=" << quote << "test"";
--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsub=mysql-plusplus@progressive-comp.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic