aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/module_test.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2014-12-17 16:01:28 +0900
committerRyuta Kamizono <kamipo@gmail.com>2015-01-02 22:30:07 +0900
commit4157f5d172830df07b44a66d4096d152e068dc4a (patch)
treef62df286d1f9ca7137fa4149358370f0fa6ef315 /activesupport/test/core_ext/module_test.rb
parentae419af6667125662a4324e8809e2a15aad686d2 (diff)
downloadrails-4157f5d172830df07b44a66d4096d152e068dc4a.tar.gz
rails-4157f5d172830df07b44a66d4096d152e068dc4a.tar.bz2
rails-4157f5d172830df07b44a66d4096d152e068dc4a.zip
Format the datetime string according to the precision of the datetime field.
Incompatible to rounding behavior between MySQL 5.6 and earlier. In 5.5, when you insert `2014-08-17 12:30:00.999999` the fractional part is ignored. In 5.6, it's rounded to `2014-08-17 12:30:01`: http://bugs.mysql.com/bug.php?id=68760
Diffstat (limited to 'activesupport/test/core_ext/module_test.rb')
0 files changed, 0 insertions, 0 deletions