Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
aa1318be
Commit
aa1318be
authored
Jul 14, 2017
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Just call `quote` in case it's a connection proxy
Fixes
https://gitlab.com/gitlab-org/gitlab-ce/issues/35097
parent
677bb1e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
app/models/ee/project.rb
app/models/ee/project.rb
+6
-2
No files found.
app/models/ee/project.rb
View file @
aa1318be
...
...
@@ -243,8 +243,12 @@ module EE
environment_name:
environment
.
name
}
quoted_values
=
values
.
transform_values
(
&
self
.
class
.
connection
.
method
(
:quote
))
quoted_values
=
values
.
transform_values
do
|
value
|
# Note that the connection could be
# Gitlab::Database::LoadBalancing::ConnectionProxy
# which supports `quote` via `method_missing`
self
.
class
.
connection
.
quote
(
value
)
end
# The query is trying to find variables with scopes matching the
# current environment name. Suppose the environment name is
...
...
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