Commit aa1318be authored by Lin Jen-Shin's avatar Lin Jen-Shin

Just call `quote` in case it's a connection proxy

Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/35097
parent 677bb1e3
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment