aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorMatthew M. Boedicker <matthewm@boedicker.org>2013-03-08 08:22:33 -0800
committerMatthew M. Boedicker <matthewm@boedicker.org>2013-03-11 23:14:46 -0700
commitd3e5118e7d42a9425b843190380d12ed3ce1e5f9 (patch)
tree889736b79604b2cc90664d93dd1fa94d3a458ca1 /activerecord/CHANGELOG.md
parentf278deb712b16c7897d63a6565bea3431ec0d38a (diff)
downloadrails-d3e5118e7d42a9425b843190380d12ed3ce1e5f9.tar.gz
rails-d3e5118e7d42a9425b843190380d12ed3ce1e5f9.tar.bz2
rails-d3e5118e7d42a9425b843190380d12ed3ce1e5f9.zip
Pass column to quote when copying a sqlite table.
To make quote escape binary data correctly it needs the column passed in.
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 943c2dec16..930a28b752 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,5 +1,14 @@
## Rails 4.0.0 (unreleased) ##
+* Fix quoting for sqlite migrations using copy_table_contents() with binary
+ columns.
+
+ These would fail with "SQLite3::SQLException: unrecognized token" because
+ the column was not being passed to quote() so the data was not quoted
+ correctly.
+
+ *Matthew M. Boedicker*
+
* Promotes `change_column_null` to the migrations API. This macro sets/removes
`NOT NULL` constraints, and accepts an optional argument to replace existing
`NULL`s if needed. The adapters for SQLite, MySQL, PostgreSQL, and (at least)