diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-05-22 23:44:59 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-05-22 23:44:59 +0300 |
commit | 2df8b48dbbe57f64d414e7c3395f9d34b01271b0 (patch) | |
tree | 229f29e3f67b07206b0217cd47ddedb601bd9694 /lib/gitlab | |
parent | 9e92b0eead3c2b6dabf377f119cd1f91fd645a42 (diff) |
Add MySQL compatibility fix in migration helpers
Diffstat (limited to 'lib/gitlab')
-rw-r--r-- | lib/gitlab/database/migration_helpers.rb | 3 |
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}"). |