Re: DB_DataObject: database error code

From: Date: Tue, 19 Jul 2005 04:10:48 +0000
Subject: Re: DB_DataObject: database error code
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20049@lists.php.net to get a copy of this message
On Mon, 2005-07-18 at 13:47 +0300, Laszlo Hermann wrote: > Dear ..., > > Is there a way to see what error code did the sql server return? (for > example msyql returns 1062 for duplicate entries) > > I'm talking about DB_DataObject. turn debugging on... or print_r() the dataobject, it's one of the variables.. (there may also be a method for retrieving it, but I cant remember of the top of my head) Regards Alan > > Thanks, > > Laszlo.

« previous php.pear.general (#20049) next »