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/cases/adapters/postgresql
Ryuta Kamizono 1ac40f16c5 Move Arel attribute normalization into arel_table
In Active Record internal, `arel_table` is not directly used but
`arel_attribute` is used, since `arel_table` doesn't normalize an
attribute name as a string, and doesn't resolve attribute aliases.

For the above reason, `arel_attribute` should be used rather than
`arel_table`, but most people directly use `arel_table`, both
`arel_table` and `arel_attribute` are private API though.

Although I'd not recommend using private API, `arel_table` is actually
widely used, and it is also problematic for unscopeable queries and
hash-like relation merging friendly, as I explained at #39863.

To resolve the issue, this change moves Arel attribute normalization
(attribute name as a string, and attribute alias resolution) into
`arel_table`.
2020-07-19 23:41:24 +09:00
..
active_schema_test.rb Make index options to kwargs 2020-05-28 07:48:53 +09:00
array_test.rb Fix type casting column default in change_column 2019-01-20 11:09:00 +09:00
bit_string_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
bytea_test.rb Raise ArgumentError for invalid :limit and :precision like as other options 2019-04-07 16:14:42 +09:00
case_insensitive_test.rb Move Arel attribute normalization into arel_table 2020-07-19 23:41:24 +09:00
change_schema_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
cidr_test.rb
citext_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
collation_test.rb
composite_test.rb Use squiggly heredoc to strip odd indentation in the executed SQL 2018-11-22 19:43:53 +09:00
connection_test.rb Deprecate connection_config 2019-12-17 12:20:37 -05:00
create_unlogged_tables_test.rb Add support for UNLOGGED Postgresql tables 2018-11-13 09:37:20 -05:00
datatype_test.rb OID type should accept a value range of unsigned integers 2020-02-12 16:42:33 +09:00
date_test.rb PostgreSQL: Allow BC dates like datetime consistently 2018-02-23 11:15:00 +09:00
domain_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
enum_test.rb Use squiggly heredoc to strip odd indentation in the executed SQL 2018-11-22 19:43:53 +09:00
explain_test.rb
extension_migration_test.rb Ensure to reset actually used @connection.schema_migration's table name 2019-06-15 08:04:18 +09:00
foreign_table_test.rb Rename a test method to not conflict with a deprecated method 2019-12-17 12:35:15 -05:00
full_text_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
geometric_test.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
hstore_test.rb Add dirty methods for store accessors 2019-03-25 18:49:44 -04:00
infinity_test.rb Enable Style/RedundantBegin cop to avoid newly adding redundant begin block 2018-12-21 06:12:42 +09:00
integer_test.rb
json_test.rb
ltree_test.rb Remove useless rescue in setup for PostgreSQL adapter tests 2020-06-13 11:19:38 +09:00
money_test.rb Replace result_as_array by type mapping 2020-05-01 17:02:12 +09:00
network_test.rb Do not mark Postgresql MAC address and UUID attributes as changed when the assigned value only varies by case. 2020-06-03 15:27:07 -04:00
numbers_test.rb
optimizer_hints_test.rb Allow relations with different SQL comments in or 2020-05-24 22:43:10 +09:00
partitions_test.rb Cache database version in schema cache 2019-04-03 11:10:14 -04:00
postgresql_adapter_test.rb Should not rely on the global Arel::Table.engine in the framework 2020-05-01 06:55:46 +09:00
prepared_statements_disabled_test.rb
quoting_test.rb Allow spaces in postgres table names 2018-11-28 16:20:22 -05:00
range_test.rb Remove useless rescue in setup for PostgreSQL adapter tests 2020-06-13 11:19:38 +09:00
referential_integrity_test.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
rename_table_test.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
schema_authorization_test.rb
schema_test.rb This PR adds support to retrieve partitioned indexes when asking for 2020-02-06 07:36:44 +02:00
serial_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
statement_pool_test.rb
timestamp_test.rb Allow attribute aliases for timestamp magic columns 2020-06-01 21:29:33 +09:00
transaction_test.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
type_lookup_test.rb
utils_test.rb
uuid_test.rb Do not mark Postgresql MAC address and UUID attributes as changed when the assigned value only varies by case. 2020-06-03 15:27:07 -04:00
xml_test.rb Remove useless rescue in setup for PostgreSQL adapter tests 2020-06-13 11:19:38 +09:00