equal
deleted
inserted
replaced
40 if ((conn = PQconnectdb (conninfo.c_str ())) == NULL) { |
40 if ((conn = PQconnectdb (conninfo.c_str ())) == NULL) { |
41 std::cerr << server << ": " << "ERROR " << std::endl; |
41 std::cerr << server << ": " << "ERROR " << std::endl; |
42 return false; |
42 return false; |
43 } |
43 } |
44 |
44 |
|
45 if (PQstatus(conn) != CONNECTION_OK) { |
|
46 return false; |
|
47 } |
|
48 |
45 return true; |
49 return true; |
46 } |
50 } |
47 |
51 |
48 Abstract_DB::DB_RESULT PostgreSQL_DB::query (std::string sql_string) |
52 Abstract_DB::DB_RESULT PostgreSQL_DB::query (std::string sql_string) |
49 { |
53 { |