super23
Member
- Joined
- Dec 27, 2013
- Messages
- 98
- Reaction score
- 5
I am trying to compile some sources which I am certain are of 0.4 version
The compiler I use is visual studio 2010
and I get the following errors:
Haven't found any other post on otland with similar issues.
Here's the first error part:
The compiler I use is visual studio 2010
and I get the following errors:
Haven't found any other post on otland with similar issues.
Here's the first error part:
C++:
DBResult* DatabasePgSQL::storeQuery(const std::string& query)
{
if(!m_connected)
return NULL;
// executes query
PGresult* res = PQexec(m_handle, _parse(query).c_str());
ExecStatusType stat = PQresultStatus(res);
if(stat != PGRES_COMMAND_OK && stat != PGRES_TUPLES_OK)
{
std::clog << "PQexec(): " << query << ": " << PQresultErrorMessage(res) << std::endl;
PQclear(res);
return false;
}
// ERROR APPEARS HERE
DBResult* result = new PgSQLResult(res);
return verifyResult(result);
}