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
Sean Griffin 5bb26008ce Avoid infinite recursion when bad values are passed to tz aware fields
We had previously updated this to attempt to map over whatever was
passed in, so that additional types like range and array could benefit
from this behavior without the time zone converter having to deal with
every known type.

However, the default behavior of a type is to just yield the given value
to `map`, which means that if we don't actually know how to handle a
value, we'll just recurse infinitely. Since both uses of `map` in this
case occur in cases where we know receiving the same object will
recurse, we can just break on reference equality.

Fixes #23241.
2016-02-02 09:17:45 -07:00
..
adapters tabenai (typo) 2016-02-01 16:19:12 +09:00
associations Revert "Merge pull request #22486 from methyl/fix-includes-for-groupped-association" 2015-12-21 12:31:52 +01:00
attribute_methods
coders
connection_adapters Remove legacy mysql adapter 2015-12-17 15:54:57 +00:00
connection_specification
fixture_set
migration Merge pull request #23359 from kamipo/make_to_primary_key 2016-02-01 01:53:57 -02:00
relation Properly include the from clause when merging relations 2016-01-14 13:36:30 -07:00
scoping Suppress ⚠️s 2016-01-28 22:30:52 +09:00
tasks Merge pull request #22967 from schneems/schneems/generic-metadata 2016-01-08 13:42:48 -07:00
type
validations Improve support for non Active Record objects on validates_associated 2015-11-08 10:58:39 -02:00
adapter_test.rb Remove legacy mysql adapter 2015-12-17 15:54:57 +00:00
aggregations_test.rb
ar_schema_test.rb Make to primary key instead of an unique index for internal tables 2016-01-31 03:26:57 +09:00
associations_test.rb
attribute_decorators_test.rb
attribute_methods_test.rb Avoid infinite recursion when bad values are passed to tz aware fields 2016-02-02 09:17:45 -07:00
attribute_set_test.rb
attribute_test.rb
attributes_test.rb Ensure #reset_column_information clears child classes as well 2015-11-07 08:20:34 -07:00
autosave_association_test.rb Fixed setting errors details on autosaved associations 2015-10-28 20:18:29 +01:00
base_test.rb Active scopes apply to child classes, though not parents/siblings 2016-01-12 05:43:58 +10:30
batches_test.rb Changed options for find_each and variants to have options start/finish instead of start_at/end_at based on comments 2016-01-18 12:40:30 +05:30
binary_test.rb Remove legacy mysql adapter 2015-12-17 15:54:57 +00:00
bind_parameter_test.rb substitute_at is no longer used 2016-01-14 09:59:26 +09:00
cache_key_test.rb fixes #21815 2015-10-16 15:09:45 +02:00
calculations_test.rb Remove legacy mysql adapter 2015-12-21 08:46:55 +09:00
callbacks_test.rb Deprecate passing string to define callback. 2015-12-16 19:56:20 +09:00
clone_test.rb
collection_cache_key_test.rb Fix AR::Relation#cache_key to remove select scope added by user 2016-01-24 22:36:13 +05:30
column_alias_test.rb
column_definition_test.rb Extract MySQL::TypeMetadata class to connection_adapters/mysql/type_metadata.rb 2016-01-11 05:03:31 +09:00
connection_management_test.rb Fix wrong assert_equal argument order. 2015-11-07 11:35:01 +01:00
connection_pool_test.rb Require only necessary concurrent-ruby classes. 2015-11-04 21:12:28 -05:00
core_test.rb
counter_cache_test.rb
custom_locking_test.rb Remove legacy mysql adapter 2015-12-17 15:54:57 +00:00
database_statements_test.rb Fix connection#create in PG adapter 2016-01-05 10:02:29 +09:00
date_time_precision_test.rb Consolidate tests for time and datetime columns options, limit and precision 2015-11-30 20:37:45 +00:00
date_time_test.rb
defaults_test.rb Fix extract default with CURRENT_TIMESTUMP 2016-01-13 22:03:56 +09:00
dirty_test.rb
disconnected_test.rb
dup_test.rb
enum_test.rb Use the database type to deserialize enum 2016-01-23 08:44:16 -07:00
errors_test.rb
explain_subscriber_test.rb
explain_test.rb
finder_respond_to_test.rb
finder_test.rb Revert "Merge pull request #16400 from bogdan/last-with-sql" 2016-02-01 14:03:12 -07:00
fixtures_test.rb fix regression when loading fixture files with symbol keys. 2016-01-13 10:11:54 +01:00
forbidden_attributes_protection_test.rb Fix more test failures caused by #21000 2015-11-23 15:36:38 -07:00
habtm_destroy_order_test.rb
helper.rb Remove legacy mysql adapter 2015-12-17 15:54:57 +00:00
hot_compatibility_test.rb
i18n_test.rb
inheritance_test.rb Do not use default attributes for STI when instantiating a subclass 2016-01-27 13:26:20 -05:00
integration_test.rb fixes #21815 2015-10-16 15:09:45 +02:00
invalid_connection_test.rb tests, don't connect to mysql when running sqlite3 tests. 2015-12-28 09:00:38 +01:00
invalid_date_test.rb
invertible_migration_test.rb Remove legacy mysql adapter 2015-12-17 15:54:57 +00:00
json_serialization_test.rb
locking_test.rb Fix test failures caused by 574f255 2015-12-14 09:20:07 -07:00
log_subscriber_test.rb test_binary_data_is_not_logged is for prepared statements logging 2015-11-05 17:39:53 +09:00
migration_test.rb Rename active_record_internal_metadatas to ar_internal_metadata 2016-02-01 15:52:30 +00:00
migrator_test.rb Internal test migrations use the private 'Current' version 2015-12-15 17:18:09 +10:30
mixin_test.rb
modules_test.rb
multiparameter_attributes_test.rb
multiple_db_test.rb
nested_attributes_test.rb Don't short-circuit reject_if proc 2016-01-22 15:00:50 -08:00
nested_attributes_with_callbacks_test.rb
persistence_test.rb ActiveRecord::Base#becomes should copy the errors 2015-12-14 19:02:20 +03:00
pooled_connections_test.rb Deprecate #table_exists?, #tables and passing arguments to #talbes 2015-11-09 23:13:23 +09:00
primary_keys_test.rb Remove duplicated composite primary key tests 2016-02-01 11:20:30 +09:00
query_cache_test.rb
quoting_test.rb
readonly_test.rb
reaper_test.rb
reflection_test.rb When verifying size of relation, also verify count is ok. 2016-01-25 13:41:21 +05:30
relation_test.rb activerecord: reuse immutable objects 2016-01-04 12:09:37 -05:00
relations_test.rb Introduce ActiveRecord::IrreversibleOrderError 2016-01-27 12:53:51 +02:00
reload_models_test.rb
result_test.rb
sanitize_test.rb Merge pull request #22209 from yui-knk/add_test_sanitize_sql_array_handles_named_bind_variables 2015-12-14 07:42:32 -07:00
schema_dumper_test.rb Shorten ActiveRecord::InternalMetadata.table_name to ar_internal_metadata 2016-02-01 15:41:37 +00:00
secure_token_test.rb Revert "Merge pull request #20835 from glittershark/if-and-unless-in-secure-token" 2016-01-14 21:52:03 +01:00
serialization_test.rb
serialized_attribute_test.rb
statement_cache_test.rb
store_test.rb
suppressor_test.rb
test_case.rb Remove legacy mysql adapter 2015-12-17 15:54:57 +00:00
test_fixtures_test.rb
time_precision_test.rb Consolidate tests for time and datetime columns options, limit and precision 2015-11-30 20:37:45 +00:00
timestamp_test.rb
touch_later_test.rb travel back 2015-12-13 11:34:40 +09:00
transaction_callbacks_test.rb Fix corrupt transaction state caused by before_commit exceptions 2016-02-01 14:12:49 -07:00
transaction_isolation_test.rb
transactions_test.rb Allow add_to_transaction with null transaction 2015-12-28 14:28:19 -08:00
type_test.rb
types_test.rb
unconnected_test.rb
validations_repair_helper.rb
validations_test.rb
view_test.rb Remove legacy mysql adapter 2015-12-17 15:54:57 +00:00
yaml_serialization_test.rb