You shouldnt use Mysql ENUMS, they have some ugly properties.

Any change in the list of allowed fields requires a complete rebuild
of the table, which can take ages. Using a Char and filtering in the
application is much better!

greets,
Benjamin

On Tue, 22 Sep 2009 02:27:02 -0700 (PDT), umpirsky <umpir...@gmail.com>
wrote:
> Hi.
> 
> I wonder what is the best way to model MySQL enums? Class with constants,
> or
> array of constants, or maybe sth else? You need to render options in
> templates (<select>) or to use enum values allll over the code.
> 
> So, what is the right way to go?
> 
> Regards,
> Saša Stamenković.

Reply via email to