On Sat, Jul 5, 2014 at 11:06 AM, Madhurima Das wrote:
> int main()
> {
> PGconn *conn;
>PGresult *res;
> int i=0,nFields=0,row=0,col=0;
>
> conn = PQconnectdb("dbname=test1 host=localhost user=postgres
> password=yyy");
>if(PQstatus(conn) == CONNECTION_BAD)
>{
> fprintf(stderr, "Co
I am trying to update/alter two columns-comment and id in a table called
xxx using postgresql. Though the compiler does not show any errors but
Valgrind gives major memory leak errors. The code is:
int main()
{
PGconn *conn;
PGresult *res;
int i=0,nFields=0,row=0,col=0;
conn = PQconnectdb