mConn = PQconnectdb( conninfo );
const char* pQuery = "SELECT X FROM Y...";
PGresult* stmt = PQexec( mConn, pQuery );
can I do this?
char * original_query = Take( stmt );
thx
mConn = PQconnectdb( conninfo );
const char* pQuery = "SELECT X FROM Y...";
PGresult* stmt = PQexec( mConn, pQuery );
can I do this?
char * original_query = Take( stmt );
thx
No, the PGresult
structure does not contain that information. You need to save it yourself somehow.