Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15709 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9756 invoked by uid 1010); 1 Apr 2005 02:02:17 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 9722 invoked from network); 1 Apr 2005 02:02:17 -0000 Received: from unknown (HELO familyhealth.com.au) (127.0.0.1) by localhost with SMTP; 1 Apr 2005 02:02:17 -0000 X-Host-Fingerprint: 203.22.197.21 houston.au.fhnetwork.com FreeBSD 4.6-4.9 Received: from ([203.22.197.21:4474] helo=houston.familyhealth.com.au) by pb1.pair.com (ecelerity HEAD r(5268)) with SMTP id 4A/95-22409-6ABAC424 for ; Thu, 31 Mar 2005 21:02:14 -0500 Received: from houston.familyhealth.com.au (localhost [127.0.0.1]) by houston.familyhealth.com.au (Postfix) with ESMTP id 66FF324FE0; Fri, 1 Apr 2005 10:02:09 +0800 (WST) Received: from [192.168.0.40] (work-40.internal [192.168.0.40]) by houston.familyhealth.com.au (Postfix) with ESMTP id 34A0724FCE; Fri, 1 Apr 2005 10:02:09 +0800 (WST) Message-ID: <424CAC1D.30500@familyhealth.com.au> Date: Fri, 01 Apr 2005 10:04:13 +0800 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kouber Saparev Cc: internals@lists.php.net References: <424BA1AC.8000602@familyhealth.com.au> <20050331135922.49253.qmail@lists.php.net> In-Reply-To: <20050331135922.49253.qmail@lists.php.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: Concern over ext/pgsql API From: chriskl@familyhealth.com.au (Christopher Kings-Lynne) >>HOWEVER, it is not possible to get a result resource from a failed >>pg_query! pg_query() returns FALSE on failure, not a result. > > > You could call pg_last_error(), or pg_last_notice(). Although the last one > is currently somehow broken: http://bugs.php.net/bug.php?id=32223 Those functions are basically useless - they just return a string. Everyone's PHP/Pgsql apps at the moment have to to regexes on those strings to figure out what the error was. Chris