aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/migration
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/lib/active_record/migration
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/lib/active_record/migration')
0 files changed, 0 insertions, 0 deletions