PQresultStatus for a transaction - Mailing list pgsql-novice

From Martin Atukunda
Subject PQresultStatus for a transaction
Date
Msg-id 200507131505.29695.matlads@myrealbox.com
Whole thread Raw
List pgsql-novice
in my c code I have a call like the following:

rs = PQexec(conn, "BEGIN; UPDATE userinfo set batchno=0; UPDATE
adschedule_items set batchno=0;COMMIT;");


the question is this: when checking for failure of the above transaction, how
do I check if the above transaction failed? do i use PGRES_COMMAND_OK?

- Martin -

pgsql-novice by date:

Previous
From: Joe
Date:
Subject: Re: feedback form save to database example code to learn?
Next
From: "Adam O'Toole"
Date:
Subject: Re: [GENERAL] INSERT INTO from a SELECT query