Ryuta Kamizono
a741208f80
Ensure casting by decimal attribute when querying
...
Related 34cc301f03
.
`QueryAttribute#value_for_database` calls only `type.serialize`, and
`Decimal#serialize` is a no-op unlike other attribute types.
Whether or not `serialize` will invoke `cast` is undefined in our test
cases, but it actually does not work properly unless it does so for now.
2018-11-12 03:39:28 +09:00
Ryuta Kamizono
8623223a89
PostgreSQL: Properly quote all Infinity
and NaN
...
Since quoted `Infinity` and `NaN` are valid data for PostgreSQL.
2018-11-09 00:05:39 +09:00
bogdanvlviv
ce03e7d991
Fix occurrences Fixnum|Bignum
...
Related to d4eb0dc89e (r27830891)
2018-03-04 20:44:30 +02:00
Kir Shatrov
831be98f9a
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
Matthew Draper
87b3e226d6
Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"
...
This reverts commit 3420a14590
, reversing
changes made to afb66a5a59
.
2017-07-02 02:15:17 +09:30
Kir Shatrov
cfade1ec7e
Enforce frozen string in Rubocop
2017-07-01 02:11:03 +03:00
Ryuta Kamizono
b61227be8d
Extract NumericDataTest
to test/cases/numeric_data_test.rb
...
To ease to find the numeric data tests, extract `NumericDataTest` to
`test/cases/numeric_data_test.rb` dedicated file.
2016-12-22 15:12:30 +09:00