On Tue, June 13, 2006 18:55, [EMAIL PROTECTED] wrote: > I'd like to make something like select * from my_table where id=<my_id> > the string is built using ostringstream with << C++ operator > The query is good, pasted into the psql interpreter runs fine but fails > with a syntax error in my code ... > I thought about any special character but it would be a problem after a > paste in the postgres console too..
There is no way we can guess what the problem is if you don't show us what you're trying to do! What is the line of code that fails, and do you get a syntax error in your C++ (i.e. when you compile your program) or in the SQL query (when you run your program)? > where could I find more examples of libpqxx usage because I think that the > ones provided with the docs are too simple and not sufficient.. Well, like the documentation says, the 91 test programs in the "test" directory are also useful as examples! Every function in libpqxx is used in some way there. Jeroen _______________________________________________ Libpqxx-general mailing list [email protected] http://gborg.postgresql.org/mailman/listinfo/libpqxx-general
