Skip to content
Snippets Groups Projects
Commit 2df8b48d authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Add MySQL compatibility fix in migration helpers

parent 9e92b0ee
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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}").
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment