db_bridge/postgresql_db.cpp
changeset 14 862d63715611
parent 12 9f0ce4eaa1ce
child 15 5a0ca1f9a2f1
equal deleted inserted replaced
13:2640a7fd96ca 14:862d63715611
    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