Skip site navigation (1) Skip section navigation (2)

Re: PgSQL error codes in PHP

From: Thom Dyson <TDyson(at)sybex(dot)com>
To: pgsql-php(at)postgresql(dot)org
Subject: Re: PgSQL error codes in PHP
Date: 2004-11-12 16:00:08
Message-ID: OF4F845831.43EE4CB6-ON88256F4A.0057A54B-88256F4A.0057E796@sybex.com (view raw or flat)
Thread:
Lists: pgsql-php
Dawid,

I think you will have to build something.  If I understand the problem 
correctly, PHP's error routine needs the connection handle to get the 
error, but there is no connection handle if there is an error (!), so PHP 
can't read an error number. 

I have seen other people looking for answers to this, but I have never 
seen any answers.

Thom Dyson
Director of Information Services
Sybex, Inc.
 


pgsql-php-owner(at)postgresql(dot)org wrote on 11/12/2004 05:01:11 AM:

> Hi,

> I need help, please - I tried Google, some specialized mailinglist
> and I got no result for a week. I would like to determine PgSQL error
> codes in PHP after executing a query, but I found functions for getting
> error messages only which I found not usable (messages are often
> localised and so on).

In response to

pgsql-php by date

Next:From: Markus BertheauDate: 2004-11-13 13:41:25
Subject: Re: PgSQL error codes in PHP
Previous:From: Dawid FerenczyDate: 2004-11-12 13:01:11
Subject: PgSQL error codes in PHP

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group