Add MySQL compatibility fix in migration helpers

This commit is contained in:
Grzegorz Bizon 2016-05-22 22:44:59 +02:00
parent 9e92b0eead
commit 2df8b48dbb
1 changed files with 2 additions and 1 deletions

View File

@ -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}").