equal
deleted
inserted
replaced
36 |
36 |
37 std::cerr << "Verbindungsparameter: " << conninfo << std::endl; |
37 std::cerr << "Verbindungsparameter: " << conninfo << std::endl; |
38 return true; |
38 return true; |
39 } |
39 } |
40 |
40 |
41 std::vector < std::vector<std::string> >PostgreSQL_DB::query (std::string sql_string) |
41 Abstract_DB::DB_RESULT PostgreSQL_DB::query (std::string sql_string) |
42 { |
42 { |
43 std::vector <std::string> vec; |
43 Abstract_DB::DB_ROW vec; |
44 std::vector < std::vector <std::string> >rows; |
44 Abstract_DB::DB_RESULT rows; |
45 PGresult *res; |
45 PGresult *res; |
46 int i, j, nFields; |
46 int i, j, nFields; |
47 |
47 |
48 /* |
48 /* |
49 * send SQL query |
49 * send SQL query |