libpq++ : constructor - destructor problem with PgConnection
libpq++ : constructor - destructor problem with PgConnection
The program:
#include
#include
void main() {
char *db = "dbname=ncadb";
while (true) {
PgConnection data(db);
}
}
The output:
Segmentation fault (core dumped)
#include
#include
void main() {
char *db = "dbname=ncadb";
while (true) {
PgConnection data(db);
}
}