aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/deprecated_dynamic_methods_test.rb
diff options
context:
space:
mode:
authorAri Pollak <ajp@aripollak.com>2012-08-14 16:33:06 -0400
committerAri Pollak <ajp@aripollak.com>2012-08-15 13:21:57 -0400
commit53ca22f2e11cd3050d75385bc31b6bb5055a2738 (patch)
treefd60e0bb75247880fb2cb734d68b404644f80c93 /activerecord/test/cases/deprecated_dynamic_methods_test.rb
parentebb4a3d5becd535074502a4bf1b61a5b18e30917 (diff)
downloadrails-53ca22f2e11cd3050d75385bc31b6bb5055a2738.tar.gz
rails-53ca22f2e11cd3050d75385bc31b6bb5055a2738.tar.bz2
rails-53ca22f2e11cd3050d75385bc31b6bb5055a2738.zip
Fix occasional microsecond conversion inaccuracy
ActiveRecord::ConnectionAdapters::Column#microseconds did an unnecessary conversion to from Rational to float when calculating the integer number of microseconds. Some terminating decimal numbers in base10 are repeating decimal numbers in base2 (the format of float), and occasionally this causes a rounding error. Patch & explanation originally from Logan Bowers.
Diffstat (limited to 'activerecord/test/cases/deprecated_dynamic_methods_test.rb')
0 files changed, 0 insertions, 0 deletions