I'm using the sequel gem to read a SQL server database table.
Before I do that, I connect to the SQL server database using Oracle SQL developer, and the id column shows 1, 2, 3, 4, 5...
The table definition looks like this in SQL Developer:
But when I use the sequel gem to read the table in Ruby, that ID column is a BigDecimal and shows something like 0.1e1. Why is this? If this is an ID, shouldn't it always be integer?
How am I expected to use this field? Am I supposed to call to_i on it to convert it to integer?