-----BEGIN PGP SIGNED MESSAGE-----
On Nov 13, 2005, at 10:48 PM, Peter M. wrote:
When ActiveRecord gets any field from the database does it receive
the field as a string regardless of the field’s type in the db?
And this is why ActiveRecord must subsequently cast the data into a
If the answers are yes, then is it correct to say that the only way
databases export data for any request is through strings? (If so,
wow, primative but understandable)
The other way around: all data from the web (query and form
parameters, cookies, headers, etc) are strings. So
foo_before_type_cast gives you the “source” string whereas foo is
type-cast according to the database column type.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (Darwin)
-----END PGP SIGNATURE-----