title: Saving 1 as number into a ENUM('1','0') field set value as 0
body: <p>Just notice something weird while was saving <code>1</code> as integer into a <code>ENUM('1', '0')</code>. The value got stored as 0.</p>
  
  <pre><code>UPDATE table SET `somefield` = 1 WHERE `id` = 1;
  
  SELECT id, `somefield` WHERE id = 1;
  
  id, somefield
  1, 0
  </code></pre>
  
  <p>Is there any way to make it work? I prefer to don't modify DB.</p>
  
  <p>Also, any information about why this happen and the field is not converted would be very appreciated</p>