diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-03-12 04:30:37 -0700 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-03-12 04:30:37 -0700 |
commit | 8881723d134e3e0942fd45adc6a72a6a6f4383c3 (patch) | |
tree | db83a6981d6980c6411deb70cca33fe68aa0a38c /activerecord/test | |
parent | 466ff9310a88c59dbc0c177b41b1435ab4023d9f (diff) | |
parent | d3e5118e7d42a9425b843190380d12ed3ce1e5f9 (diff) | |
download | rails-8881723d134e3e0942fd45adc6a72a6a6f4383c3.tar.gz rails-8881723d134e3e0942fd45adc6a72a6a6f4383c3.tar.bz2 rails-8881723d134e3e0942fd45adc6a72a6a6f4383c3.zip |
Merge pull request #9615 from mmb/copy_table_binary_sqlite
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/test')
-rw-r--r-- | activerecord/test/cases/adapters/sqlite3/copy_table_test.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/activerecord/test/cases/adapters/sqlite3/copy_table_test.rb b/activerecord/test/cases/adapters/sqlite3/copy_table_test.rb index d03d1dd94c..21fb111c91 100644 --- a/activerecord/test/cases/adapters/sqlite3/copy_table_test.rb +++ b/activerecord/test/cases/adapters/sqlite3/copy_table_test.rb @@ -1,7 +1,7 @@ require "cases/helper" class CopyTableTest < ActiveRecord::TestCase - fixtures :customers, :companies, :comments + fixtures :customers, :companies, :comments, :binaries def setup @connection = ActiveRecord::Base.connection @@ -72,6 +72,10 @@ class CopyTableTest < ActiveRecord::TestCase end end + def test_copy_table_with_binary_column + test_copy_table 'binaries', 'binaries2' + end + protected def copy_table(from, to, options = {}) @connection.copy_table(from, to, {:temporary => true}.merge(options)) |