Re: DB_ERROR constants update

From: Date: Tue, 22 Oct 2002 05:25:12 +0000
Subject: Re: DB_ERROR constants update
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-10187@lists.php.net to get a copy of this message
Pear-dev List Folks (and now Stig and Tomas, too): On Sun, Oct 20, 2002 at 03:11:45PM +0200, Martin Jansen wrote: > On Fri Oct 18, 2002 at 09:4640PM +0200, Arnaud Limbourg wrote: > > Anybody on that one ? Looks like a great job to me ! > > > > I think some of the constants can be added and the error mapping done > > in the mysql driver quite easily. > > IMO this is a pretty cool thing. Dan: Just go ahead with your patch. As mentioned earlier, I'm in the process of mapping all of the MySQL errors to PEAR DB_ERROR constants. I'm close to completing this refinement. But, the more I'm looking at this, the more I'd appreciate guidance from the initial designers as to the exact intention/meaning behind each DB_ERROR constant. There are several instances where I'm not sure which constant to apply to a given MySQL error because I'm not sure what Stig and Tomas have used the constants for in other database types. I don't want to create a situation where similar errors in different databases are given different constants. Thanks, --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

« previous php.pear.dev (#10187) next »