1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/schema
Sean Griffin 10f75af933 Use bind values for joined tables in where statements
In practical terms, this allows serialized columns and tz aware columns
to be used in wheres that go through joins, where they previously would
not behave correctly. Internally, this removes 1/3 of the cases where we
rely on Arel to perform type casting for us.

There were two non-obvious changes required for this. `update_all` on
relation was merging its bind values with arel's in the wrong order.
Additionally, through associations were assuming there would be no bind
parameters in the preloader (presumably because the where would always
be part of a join)

[Melanie Gilman & Sean Griffin]
2014-11-01 15:39:51 -06:00
..
mysql2_specific_schema.rb fix detect column type of enum 2013-04-01 17:09:20 +09:00
mysql_specific_schema.rb fix detect column type of enum 2013-04-01 17:09:20 +09:00
oracle_specific_schema.rb Do not create synonym named subjects 2013-11-27 23:43:51 +01:00
postgresql_specific_schema.rb pg, preserve money type when dumping schema and extract money default. 2014-06-03 17:54:25 +02:00
schema.rb Use bind values for joined tables in where statements 2014-11-01 15:39:51 -06:00
sqlite_specific_schema.rb fk: use random digest names 2014-06-26 22:03:49 +02:00