Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-05-22 23:44:59 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-05-22 23:44:59 +0300
commit2df8b48dbbe57f64d414e7c3395f9d34b01271b0 (patch)
tree229f29e3f67b07206b0217cd47ddedb601bd9694 /lib/gitlab
parent9e92b0eead3c2b6dabf377f119cd1f91fd645a42 (diff)
Add MySQL compatibility fix in migration helpers
Diffstat (limited to 'lib/gitlab')
-rw-r--r--lib/gitlab/database/migration_helpers.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitlab/database/migration_helpers.rb b/lib/gitlab/database/migration_helpers.rb
index 9b662d163f0..1fe6c1143d5 100644
--- a/lib/gitlab/database/migration_helpers.rb
+++ b/lib/gitlab/database/migration_helpers.rb
@@ -39,7 +39,8 @@ module Gitlab
def update_column_in_batches(table, column, value)
quoted_table = quote_table_name(table)
quoted_column = quote_column_name(column)
- quoted_value = quote(value)
+ # workaround for #17711
+ quoted_value = connection.quote(value)
processed = 0
total = exec_query("SELECT COUNT(*) AS count FROM #{quoted_table}").