List:Internals« Previous MessageNext Message »
From:Sergei Golubchik Date:February 13 2007 3:39pm
Subject:Re: DB_TYPE_CUSTOM missing?
View as plain text  
Hi!

On Feb 13, David Shrewsbury wrote:
> All,
> 
> I'm trying to learn a little about creating a custom
> storage engine and following the instructions found
> in the Internals documentation. That documentation
> suggests to set the storage engine identifier to the
> DB_TYPE_CUSTOM value:
> 
> http://dev.mysql.com/doc/internals/en/custom-engine-handlerton.html
> 
> but this value does not exist anywhere in the latest 5.1
> tree. This problem was even identified back in August 2006
> to the internals mailing list:
> 
> http://lists.mysql.com/internals/33810
>
> I see that these types are defined in handler.h and even
> other custom engines have their own type defined (PBXT, Solid,
> etc). Is the proper course of action to modify handler.h
> and add my own type?

No, of course not.
Use DB_TYPE_UNKNOWN.

Regards / Mit vielen Grüssen,
Sergei

-- 
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /   Sergei Golubchik <serg@stripped>
 / /|_/ / // /\ \/ /_/ / /__  Senior Software Developer
/_/  /_/\_, /___/\___\_\___/  MySQL GmbH, Radlkoferstr. 2, D-81373 München
       <___/  Geschäftsführer: Hans von Bell, Kaj Arnö - HRB
München 162140
Thread
DB_TYPE_CUSTOM missing?David Shrewsbury13 Feb
  • Re: DB_TYPE_CUSTOM missing?Sergei Golubchik13 Feb