PQresultStatus for a transaction

From: Martin Atukunda <matlads(at)myrealbox(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: PQresultStatus for a transaction
Date: 2005-07-13 12:05:29
Message-ID: 200507131505.29695.matlads@myrealbox.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 -

Browse pgsql-novice by date

  From Date Subject
Next Message Gnanavel S 2005-07-13 13:42:54 Re: INSERT INTO from a SELECT query
Previous Message Joe 2005-07-12 23:26:53 Re: feedback form save to database example code to learn?