diff options
author | Sean McGivern <sean@gitlab.com> | 2017-06-26 19:21:40 +0300 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2017-06-26 19:21:40 +0300 |
commit | d4a3474b9b7321898a00ddcbaf651099ab96b2ba (patch) | |
tree | dde5685ac5e77a5876e64983469070e238cd6505 /spec/lib/gitlab/database_spec.rb | |
parent | 676c559409b8b51e3e97abab24bbb44207744e13 (diff) |
Fix Gitlab::Database.bulk_insert for non-UTF-8 data
Diffstat (limited to 'spec/lib/gitlab/database_spec.rb')
-rw-r--r-- | spec/lib/gitlab/database_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/lib/gitlab/database_spec.rb b/spec/lib/gitlab/database_spec.rb index 5e6206b96c7..cbf6c35356e 100644 --- a/spec/lib/gitlab/database_spec.rb +++ b/spec/lib/gitlab/database_spec.rb @@ -176,6 +176,10 @@ describe Gitlab::Database, lib: true do described_class.bulk_insert('test', rows) end + + it 'handles non-UTF-8 data' do + expect { described_class.bulk_insert('test', [{ a: "\255" }]) }.not_to raise_error + end end describe '.create_connection_pool' do |