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/models
Ryuta Kamizono 15e3e9cdcc Ensure to calculate column aliases after all table aliases are constructed
Currently, column aliases which is used for eager loading are calculated
before constructing all table aliases in FROM clause.

`JoinDependency#join_constraints` constructs table aliases for `joins`
first, and then always re-constructs table aliases for eager loading.

If both `joins` and eager loading are given a same table association,
the re-construction would cause the discrepancy between column aliases
and table aliases.

To avoid the discrepancy, the column aliases should be calculated after
all table aliases are constructed.

Fixes #30603.
2018-06-19 22:21:51 +09:00
..
admin Update prefix and allow suffix options for store accessors 2018-06-12 07:10:09 -07:00
autoloadable
publisher
account.rb
admin.rb
aircraft.rb
arunit2_model.rb
author.rb get_value needs to be a public method 2018-04-25 06:29:03 -04:00
auto_id.rb
binary.rb
bird.rb
book.rb
boolean.rb
bulb.rb
cake_designer.rb
car.rb Fix touch option to behave consistently with Persistence#touch method 2018-06-18 19:08:41 +09:00
carrier.rb
cat.rb
categorization.rb
category.rb
chef.rb
citation.rb
club.rb
college.rb
column.rb
column_name.rb
comment.rb
company.rb Fix collection.create to could be rolled back by after_save 2018-06-07 06:58:45 +09:00
company_in_module.rb
computer.rb
contact.rb
content.rb
contract.rb
country.rb
course.rb
customer.rb
customer_carrier.rb
dashboard.rb
default.rb
department.rb
developer.rb
dog.rb
dog_lover.rb
doubloon.rb
drink_designer.rb
edge.rb
electron.rb
engine.rb
entrant.rb
essay.rb
event.rb
eye.rb
face.rb Make reflection.klass raise if polymorphic? not to be misused 2018-02-19 00:11:29 +09:00
family.rb
family_tree.rb
friendship.rb
frog.rb Merge pull request #30956 from CJStadler/with-lock-changed-deprecation 2018-03-28 13:11:01 -04:00
guid.rb
guitar.rb
hotel.rb
image.rb
interest.rb
invoice.rb
item.rb
job.rb
joke.rb
keyboard.rb
legacy_thing.rb
lesson.rb
line_item.rb
liquid.rb
man.rb Make reflection.klass raise if polymorphic? not to be misused 2018-02-19 00:11:29 +09:00
matey.rb
member.rb Ensure to calculate column aliases after all table aliases are constructed 2018-06-19 22:21:51 +09:00
member_detail.rb Using existing models for building multiple has_one through tests 2018-04-22 04:16:44 +09:00
member_type.rb
membership.rb
mentor.rb
minimalistic.rb
minivan.rb
mixed_case_monkey.rb
molecule.rb
movie.rb
node.rb
non_primary_key.rb
notification.rb
numeric_data.rb
order.rb
organization.rb
other_dog.rb
owner.rb
parrot.rb
person.rb
personal_legacy_thing.rb
pet.rb
pet_treasure.rb
pirate.rb
possession.rb
post.rb
price_estimate.rb
professor.rb
project.rb
publisher.rb
randomly_named_c1.rb
rating.rb
reader.rb
recipe.rb
record.rb
reference.rb
reply.rb Reuse existing model for testing duplicated children records 2018-06-07 04:28:23 +09:00
ship.rb
ship_part.rb
shop.rb
shop_account.rb
speedometer.rb
sponsor.rb Make reflection.klass raise if polymorphic? not to be misused 2018-02-19 00:11:29 +09:00
string_key_object.rb
student.rb
subscriber.rb
subscription.rb
tag.rb
tagging.rb
task.rb
topic.rb Reuse existing model for testing duplicated children records 2018-06-07 04:28:23 +09:00
toy.rb
traffic_light.rb
treasure.rb
treaty.rb
tree.rb
tuning_peg.rb
tyre.rb
user.rb
uuid_child.rb
uuid_item.rb
uuid_parent.rb
vegetables.rb
vehicle.rb
vertex.rb
warehouse_thing.rb
wheel.rb Fix touch option to behave consistently with Persistence#touch method 2018-06-18 19:08:41 +09:00
without_table.rb
zine.rb