aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-05-04 18:20:51 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-05-04 18:20:51 -0300
commit7922ccb26189baec36f2523e034fec1560a69b03 (patch)
tree68e5aa859e02425a8f08339051078da788d64b1b /activerecord/CHANGELOG.md
parentaf6816110afc4be56f423cbe51e69891a42df65e (diff)
parent12ff63b227e7ef01c7e57302c9999151dca157f1 (diff)
downloadrails-7922ccb26189baec36f2523e034fec1560a69b03.tar.gz
rails-7922ccb26189baec36f2523e034fec1560a69b03.tar.bz2
rails-7922ccb26189baec36f2523e034fec1560a69b03.zip
Merge pull request #14946 from jcoleman/fix-null-binary-column-logging-exception
Fix exception when logging SQL w/ nil binary value. Conflicts: activerecord/CHANGELOG.md
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 1f6ce38569..e51b5b44cc 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,15 @@
+* Log nil binary column values correctly.
+
+ When an object with a binary column is updated with a nil value
+ in that column, the SQL logger would throw an exception when trying
+ to log that nil value. This only occurs when updating a record
+ that already has a non-nil value in that column since an initial nil
+ value isn't included in the SQL anyway (at least, when dirty checking
+ is enabled.) The column's new value will now be logged as `<NULL binary data>`
+ to parallel the existing `<N bytes of binary data>` for non-nil values.
+
+ *James Coleman*
+
* Rails will now pass a custom validation context through to autosave associations
in order to validate child associations with the same context.