BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
f4eef75d
Commit
f4eef75d
authored
Jun 27, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '34324-gitlab-db-seed-is-broken' into 'master'
Resolve "GitLab DB seed is broken" Closes #34324 See merge request !12464
parents
6a2186c7
d4a3474b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
database.rb
lib/gitlab/database.rb
+1
-1
database_spec.rb
spec/lib/gitlab/database_spec.rb
+4
-0
No files found.
lib/gitlab/database.rb
View file @
f4eef75d
...
...
@@ -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
...
...
spec/lib/gitlab/database_spec.rb
View file @
f4eef75d
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment