Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16137 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33133 invoked by uid 1010); 29 Apr 2005 09:13:39 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 33118 invoked from network); 29 Apr 2005 09:13:39 -0000 Received: from unknown (HELO ca.com) (127.0.0.1) by localhost with SMTP; 29 Apr 2005 09:13:39 -0000 X-Host-Fingerprint: 130.119.248.68 mail16.ca.com Windows 2000 SP4, XP SP1 Received: from ([130.119.248.68:19794] helo=mail16.ca.com) by pb1.pair.com (ecelerity 1.2.12rc1 r(5476:5477)) with SMTP id B3/0E-20173-2CAF1724 for ; Fri, 29 Apr 2005 05:13:38 -0400 Received: from ukslms22.ca.com ([130.119.9.26]) by mail16.ca.com with Microsoft SMTPSVC(5.0.2195.6713); Fri, 29 Apr 2005 10:13:35 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Fri, 29 Apr 2005 10:13:34 +0100 Message-ID: <08237065FA027340B731E5709909785403A60D90@ukslms22.ca.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH] Ingres error reporting functions Thread-Index: AcVE66QsObbGisBHSGum0JX1gpTBxwAApEXgAetZDDA= To: X-OriginalArrivalTime: 29 Apr 2005 09:13:35.0064 (UTC) FILETIME=[B8998D80:01C54C9B] Subject: RE: [PATCH] Ingres error reporting functions From: Grant.Croker@ca.com ("Croker, Grant") Hi, Is there anyone who can take a look at this patch or can submit it for me? thanks grant > -----Original Message----- > From: Croker, Grant > Sent: 19 April 2005 17:03 > To: 'Lukas Smith' > Cc: internals@lists.php.net > Subject: RE: [PATCH] Ingres error reporting functions >=20 > Ok, >=20 > As you say there does not seem to be any consistent naming of functions. A > fact I guess PDO will address. I have changed the names to match mysql and > have a 3rd function (ingres_errsqlstate) that reports the SQLSTATE of the > last statement run. With Ingres SQLSTATE and errno is not the same thing > since errno is more granular than SQLSTATE. >=20 > The revised code can be found in this link: >=20 > http://www.ingres.co.uk/php/head/ingres_error_reporting_rev2.diff >=20 > thanks >=20 > grant >=20 > > -----Original Message----- > > From: Lukas Smith [mailto:lsmith@php.net] > > Sent: 19 April 2005 16:25 > > To: Croker, Grant > > Cc: internals@lists.php.net > > Subject: Re: [PATCH] Ingres error reporting functions > > > > Grant Croker wrote: > > > > > I would like to submit the following patch to PHP: > > > http://www.ingres.co.uk/php/head/ingres_error_reporting.diff > > > > > > It includes 3 new functions for reporting errors; ingres_error(), > > > ingres_error_text() and ingres_error_sqlstate(). Also included is the > > > ability to suppress E_WARNING messages that happen when a database > error > > > is detected. This requires the following to be added to php.ini under > > > the section titled "[Ingres II]": > > > > I know its too late to fix this in the current database extensions (who > > all follow either the native, the mysql ext or some random naming the > > given developer came up with), but you might want to atleast try and > > follow an existing database extension with the function naming. I guess > > ext/mysql or mysqli might be a good rolemodel just because its used alot. > > > > regards, > > Lukas > >