Thread: [OT] enum translation

[OT] enum translation

From
"Jean-Yves F. Barbier"
Date:
Hi list,

Enum as a column type is a very practical thing.
However, I wonder how you manage enum members translations
into your programs?

JY
--

Re: [OT] enum translation

From
Merlin Moncure
Date:
On Thu, Jan 5, 2012 at 10:19 AM, Jean-Yves F. Barbier <12ukwn@gmail.com> wrote:
> Hi list,
>
> Enum as a column type is a very practical thing.
> However, I wonder how you manage enum members translations
> into your programs?

Not sure I follow the question.  Enum comes back as string, so you
either use the string directly or translate to something else via
classic data structure such as hash table.

merlin