RDBI/rdbi-driver-odbc — Issue #2: MySQL SQL_TYPE does not exist
Author: bsanders1979
Created: 2011-10-13 02:41:08+00:00
State: open

When querying a MySQL datasource, I get "undefined method `[]' for nil:NilClass" at rdbi-driver-odbc-0.1.2/lib/rdbi/driver/odbc.rb:215. The value of col.type is -9 (which I couldn't seem to verify anywhere) and the actual sql type is varchar. I simply copied/pasted the other varchar definition (12) and changed the key accordingly and resolved the issue. Thought you might like to know.