aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorJames Coleman <jtc331@gmail.com>2014-05-02 12:32:49 -0400
committerJames Coleman <jtc331@gmail.com>2014-05-02 12:39:40 -0400
commit12ff63b227e7ef01c7e57302c9999151dca157f1 (patch)
tree529ebbb8ef35930db431ae13cdb488a66c9925f8 /activerecord/CHANGELOG.md
parent504adac36ed2b57616c34a5c1f2b565333cb9533 (diff)
downloadrails-12ff63b227e7ef01c7e57302c9999151dca157f1.tar.gz
rails-12ff63b227e7ef01c7e57302c9999151dca157f1.tar.bz2
rails-12ff63b227e7ef01c7e57302c9999151dca157f1.zip
Fix exception when logging SQL w/ nil binary value.
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 df73eb4484..0b27aabf63 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*
+
* Stringify all variable keys of mysql connection configuration.
When the `sql_mode` variable for mysql adapters is set in the configuration