title: cursor.description "type_code" correspondence with database field types
body: <p>Using a MySQL back-end and basically want to determine the field type of tables from the type_code in the cursor.description tuples...</p>
  
  <p>What I get is a bunch of different numbers... and by comparing my tables with the type_code values I can manually put together a set of correspondences... but I have many more types than the type objects documented in my Python book (Beazley), namely STRING, BINARY, NUMBER, DATETIME, ROWID.</p>
  
  <p>I presume there are therefore different type_codes being given to things like DECIMAL, UNSIGNED INT, etc... but I'm just surprised not to be able to find any info out here or on the Net generally.</p>
  
  <p>What I want to do, by the way, is to automate the process whereby input (in a GUI grid connected to a MySQL table for example) determines what type of data the table is expecting for that column, and parses and checks it to find out whether this is a legal value.  </p>