Commit 2df8b48d authored by Grzegorz Bizon's avatar Grzegorz Bizon

Add MySQL compatibility fix in migration helpers

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