On Fri, 2006-06-16 at 04:18 +0100, [EMAIL PROTECTED] wrote:
<...snip>

                        // construit la requete
                        ostringstream s;
                        string query ="SELECT binarydata FROM usager_tbl
where usagerid=";
                        s<<query<<abonneid<<" AND cdid="<<cdid<<" AND
superviseurid="<<superviseurid<<";"<<endl;
                        s.flush();

                        cout << " query built = ------- " << s.str()<<"
-----"<< endl;
                        // 3) utilise la transaction pour executer une
requete ...(select)
                         result R( T.exec(query) );
<...snip>
You're using the string query, not your ostringstream s. If you add the line query = s.str(); that should take care of your problem.


Chris

--
Sometimes I wonder whether the world is being run by smart people who are putting us on or by imbeciles who really mean it. -- Mark Twain
_______________________________________________
Libpqxx-general mailing list
[email protected]
http://gborg.postgresql.org/mailman/listinfo/libpqxx-general

Reply via email to