aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
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 /activerecord/CHANGELOG.md
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 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 9820a10067..136277b924 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,14 @@
+* 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
+
+ *Ryuta Kamizono*
+
* Allow precision option for MySQL datetimes.
*Ryuta Kamizono*