[Rails] MySQL adapter returns integers as strings?
Chris Brooks
brookscl at gmail.com
Wed Nov 24 06:27:11 GMT 2004
On Wed, 24 Nov 2004 16:51:21 +1100, Gavin Sinclair
<gsinclair at soyabean.com.au> wrote:
> The integer columns in my DB tables are returned as strings when
> ActiveRecord gets involved. This seems annoying and unnecessary to
> me. Surely the database adapter knows, or can know, what data types
> are used. Is it ActiveRecord's policy to ignore this metadata?
Strange... integer columns work just fine for me on MySQL with ActiveRecord.
--
Chris Brooks
http://www.chrisbrooks.org
More information about the Rails
mailing list