A MySQL table with a column with a type of tinyint(4) is being classed
as a TrueClass when it shouldn't be.

mysql> create table `test_db` (`tinyint` tinyint(4));
Query OK, 0 rows affected (0.01 sec)

mysql> insert into test_db values(35);
Query OK, 1 row affected (0.00 sec)

mysql> insert into test_db values(60);
Query OK, 1 row affected (0.00 sec)

mysql> insert into test_db values(30);
Query OK, 1 row affected (0.00 sec)

mysql> select * from test_db;
+---------+
| tinyint |
+---------+
|      35 |
|      60 |
|      30 |
+---------+
3 rows in set (0.00 sec)

ds = db[:test_db].select(:tinyint)

ds.each { |x|
  p x[:tinyint].class
}

Output:

TrueClass
TrueClass
TrueClass

Is this the expected outcome?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to