Commit 4a5bc019 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Merge branch 'fix-quote-for-connection-proxy' into 'master'

Fix undefined method quote when database load balancing is used

Closes gitlab-ce#35097

See merge request !2430
parents 629a37f3 d4291aaa
......@@ -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
......
---
title: Fix undefined method quote when database load balancing is used
merge_request: 2430
author:
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