Re: Any postgres API available to get errorcode for PQerrorMessage

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Any postgres API available to get errorcode for PQerrorMessage
Date: 2014-10-15 17:21:53
Message-ID: 543EAD31.3060208@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

On 10/15/2014 9:48 AM, Roopeshakumar Narayansa Shalgar (rshalgar) wrote:
> I need the 'integer' errorcode

SQLSTATE Error codes are NOT integers, they are strings. note there's
stuff in there like 0100C, 01P01, etc.

--
john r pierce 37N 122W
somewhere on the middle of the left coast

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jonathan Rogers 2014-10-15 21:39:46 PL/Python prepare example's use of setdefault
Previous Message Roopeshakumar Narayansa Shalgar (rshalgar) 2014-10-15 16:48:36 Re: [GENERAL] Any postgres API available to get errorcode for PQerrorMessage

Browse pgsql-sql by date

  From Date Subject
Next Message Yogesh. Sharma 2014-10-16 03:10:30 Re: Any postgres API available to get errorcode for PQerrorMessage
Previous Message Roopeshakumar Narayansa Shalgar (rshalgar) 2014-10-15 16:48:36 Re: [GENERAL] Any postgres API available to get errorcode for PQerrorMessage