From: Paul Lutus Date: 2006-09-27T04:45:16+09:00 Subject: Re: Fixnum/String randomly changing type Sam Web wrote: > Hi, > > I am seeing some odd behavior that look to me to like it could be a bug > in Ruby. Being new to the language, however, I wanted to see if there > was another explanation. I am using Ruby 1.8.4 on an Intel Mac. The > code at the bottom of this message is an excerpt from a class in a > larger script. It is using DBI to pull 10 fields from a MySQL database. > The first 9 are integers (tinyint(4) in the database) and the last is a > string (varchar(255) in the database). When I run the below program as > is, the puts outputs: > > Info[0] class: String > Info[0] value: 0 > Info[0] class: String > Info[0] value: 0 And the below program is ...? -- Paul Lutus http://www.arachnoid.com