[Libpqxx-general] .exec + operator?

Caleb Cushing xenoterracide at gmail.com
Fri Sep 11 21:09:36 UTC 2009


        tran.exec("DROP SCHEMA IF EXISTS korama CASCADE;"
                "CREATE SCHEMA korama;");
why's that work?

but this

        tran.exec("DROP SCHEMA IF EXISTS korama CASCADE;" +
                "CREATE SCHEMA korama;");

doesn't?

in the tutorial an example looks like this
	T.exec("DELETE FROM " + Table + " WHERE ID=" + ID);

I realize it's concatenating variables but shouldn't it work for just
straight strings?

note: I'm completely new to libpqxx and pretty new to C++ in general
(never done a non academic project in full).
-- 
Caleb Cushing

http://xenoterracide.blogspot.com


More information about the Libpqxx-general mailing list