[storm] Invalid enum value on find
Oscar Campos
oscar.campos at open-phoenix.com
Wed Apr 3 22:17:40 UTC 2013
El 03/04/13 22:09, Jamu Kakar escribió:
> Hi Oscar,
>
> Your Enum definition looks correct. What datatype are you using on
> the MySQL type? Is it possible there's some issue there with the
> loaded value not matching the values in your map?
>
> Thanks,
> J.
Hi Jamu
I'm using Enum -> http://dev.mysql.com/doc/refman/5.1/en/enum.html
The problem is MySQL returns 'VISA' or 'LASER' instead of 1 or 3 and the
_get_map variable contains a reversed dict as:
{1: 'VISA', 2: 'MC': 3: 'LASER' .... }
So obviously u'VISA' raises a KeyError exception because Storm is
waiting for an int 1 as key.
Regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/storm/attachments/20130403/eeb3f32d/attachment.html>
More information about the storm
mailing list