MySQL Lists are EOL. Please join:

List:Internals« Previous MessageNext Message »
From:Sergei Golubchik Date:January 30 2007 7:38pm
Subject:Re: Request for guidelines on return values from handler.h methods
View as plain text  
Hi!

On Dec 20, Sergei Golubchik wrote:
> Hi!
> 
> On Dec 11, Mark Callaghan wrote:
> > On 12/11/06, Sergei Golubchik <serg@stripped> wrote:
> > >On Dec 11, Mark Callaghan wrote:
> > >
> > >> 3) can a generic error tag be added to HA_ERR* so that neither -1
> > >> nor +1 are used?
> > >
> > >Are HA_ERR* constants good enough ?
> > 
> > I don't think that any of the existing HA_ERR* values represent a
> > generic error. The values for 5.0 follow.
> > 
> > #define HA_ERR_FIRST            120 /*Copy first error nr.*/
> 
> Ok, I see.
> We can add it, but until then you can simply use any number, I suppose.
> It should be safe.

I've just added HA_ERR_GENERIC to 5.1 (not pushed yet, it'll go together
with my fix for ::index_read_idx)
 
Regards,
Sergei

-- 
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /   Sergei Golubchik <serg@stripped>
 / /|_/ / // /\ \/ /_/ / /__  MySQL AB, Senior Software Developer
/_/  /_/\_, /___/\___\_\___/  Kerpen, Germany
       <___/  www.mysql.com
Thread
Request for guidelines on return values from handler.h methodsMark Callaghan12 Dec
  • Re: Request for guidelines on return values from handler.h methodsSergei Golubchik12 Dec
    • Re: Request for guidelines on return values from handler.h methodsMark Callaghan12 Dec
      • Re: Request for guidelines on return values from handler.h methodsSergei Golubchik20 Dec
        • Re: Request for guidelines on return values from handler.h methodsSergei Golubchik30 Jan