I'm trying to update a mariadb table column, to a string that contains a literal backslash.
I want the resulting string in the table to be
4.4 \(blah blah\)
I've tried
UPDATE table SET string = '4.4 \\(blah blah\\)' WHERE string = '4.4 (blah blah)';
This works when I run it in Sequel Pro, but when I run it as part of a ruby/rails migration, the result is that the column remains unchanged, ie. 4.4 (blah blah).
I've tried every combination of single quotes, double quotes, single backslash, double backslash. I also tried a triple backslash.
NO_BACKSLASH_ESCAPES sql_mode.