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 /lib/gitlab/database.rb | |
parent | 676c559409b8b51e3e97abab24bbb44207744e13 (diff) |
Fix Gitlab::Database.bulk_insert for non-UTF-8 data
Diffstat (limited to 'lib/gitlab/database.rb')
-rw-r--r-- | lib/gitlab/database.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/database.rb b/lib/gitlab/database.rb index 0d5a7cf0694..d7dab584a44 100644 --- a/lib/gitlab/database.rb +++ b/lib/gitlab/database.rb @@ -93,7 +93,7 @@ module Gitlab row.values_at(*keys).map { |value| connection.quote(value) } end - connection.execute <<-EOF.strip_heredoc + connection.execute <<-EOF INSERT INTO #{table} (#{columns.join(', ')}) VALUES #{tuples.map { |tuple| "(#{tuple.join(', ')})" }.join(', ')} EOF |