Re: BEGIN, END & ROLLBACK commands -- do they produce a SQLSTATE value?

From: rob stone <floriparob(at)gmail(dot)com>
To: "Steve Petrie, P(dot)Eng(dot)" <apetrie(at)aspetrie(dot)net>, pgsql-general(at)postgresql(dot)org
Subject: Re: BEGIN, END & ROLLBACK commands -- do they produce a SQLSTATE value?
Date: 2015-10-03 17:54:20
Message-ID: 1443894860.6721.3.camel@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, 2015-10-03 at 08:18 -0400, Steve Petrie, P.Eng. wrote:
> Greetings To <pgsql-general(at)postgresql(dot)org>:
>
> I am migrating a PHP web application to use PostgreSQL instead of
> MySQL.
>
> And I have never used PostgreSQL before.
>
> I have two questions about function pg_result_error_field(...);
>
> An extensive search of the web, did not yield a solution to my
> problem.
>
> * * *
> * * *
>
> My PHP program is using the PHP pg_* PostgreSQL functions.
>
> The test environment is Windows XP SP3 with: PostgreSQL 9.3, Apache
> 2.2.14 and PHP 5.3.1.
>
> The file php.ini has a line extension = php_pgsql.dll
>
> phpinfo() shows (when my PHP program is not running):
> ...
> pgsql
> PostgreSQL Support enabled
> PostgreSQL(libpq) Version 8.4.1
> Multibyte character support enabled
> SSL support enabled
> Active Persistent Links 0
> Active Links 0
>

I'm a Linux user. However, libpq version 8.4.1 doesn't jell with
version 9.3 of PostgreSql.

So, are you trying to obtain the failure "reason" when a "BEGIN",
"COMMIT" or "ROLLBACK" fails?

Cheers,
Rob

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Madovsky 2015-10-03 21:38:30 Re: Replication with 9.4
Previous Message Michael Paquier 2015-10-03 13:55:04 Re: Replication with 9.4