[Libpqxx-general] connection closing early?
Caleb Cushing
xenoterracide at gmail.com
Mon Sep 21 03:26:36 UTC 2009
try {
connection conn("user=xenoterracide dbname=xenoterracide");
work tran(conn);
tran.exec("SET client_min_messages=warning;");
tran.commit();
cout << "check" << endl; //connection dies about here
tran.exec("DROP SCHEMA IF EXISTS korama CASCADE;"
"CREATE SCHEMA korama;");
tran.commit();
cout << "check" << endl;
...
I'm guess the connection is gone after the commit() is that right? it
doesn't seem right...
--
Caleb Cushing
http://xenoterracide.blogspot.com
More information about the Libpqxx-general
mailing list