<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">El 03/04/13 22:09, Jamu Kakar escribió:<br>
</div>
<blockquote
cite="mid:CALWnh8q0vkQG+XehCsBqDSaLWsUuoZ0cUYihsiv=f68aj5X3Dg@mail.gmail.com"
type="cite">
<pre wrap="">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.
</pre>
</blockquote>
<br>
Hi Jamu<br>
<br>
I'm using Enum ->
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<a href="http://dev.mysql.com/doc/refman/5.1/en/enum.html">http://dev.mysql.com/doc/refman/5.1/en/enum.html</a><br>
<br>
The problem is MySQL returns 'VISA' or 'LASER' instead of 1 or 3 and
the _get_map variable contains a reversed dict as:<br>
<br>
{1: 'VISA', 2: 'MC': 3: 'LASER' .... }<br>
<br>
So obviously u'VISA' raises a KeyError exception because Storm is
waiting for an int 1 as key.<br>
<br>
Regards.<br>
</body>
</html>