Bug #21149 | Replication fails because of apostrophe in data | ||
---|---|---|---|
Submitted: | 19 Jul 2006 13:30 | Modified: | 30 Mar 2007 19:58 |
Reporter: | Brian Robinson | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S1 (Critical) |
Version: | 5.0.22-0 | OS: | Linux (SuSe 10.0) |
Assigned to: | CPU Architecture: | Any | |
Tags: | apostrophe, replication |
[19 Jul 2006 13:30]
Brian Robinson
[19 Jul 2006 13:45]
Brian Robinson
I have restested with SQL-MODE set that it is not no-backslash-escapes on both master and slave replications works fine with apostrophes - apologies for not thinking of this before brian
[30 Mar 2007 15:21]
Ken Johanson
This bug should not be closed if it requires a workaround of disabling the NO_BACKSLASH_ESCAPES, as this is a desired default-mode of operation for many users. If this comment entry does not allow me to re-open (testing herein) this bug I will have to file a new one.
[30 Mar 2007 19:58]
Brian Robinson
Looks like my comment was. confusing. Scenarios was from begining 1) we had a insert statement that had backslashes in teh select section e.g. insert into table_1 (select a,b,c from table_2 where table_2.path like concat(table_1.path,%) not excatly the query but something like that. As the path could contain windows paths - I set (WRONGLY SO) SQL_MODE in my.cnf to be NO_BAKCLASH_ESCAPES). It turns out this setting was causing the replication slave to fail when it recived data with apostrophes in them. Now I have forund a work around for the original problem, removed the NO_BACKSLASH_ESCAPES from the my.cnf and all works fine - including the slave. So from my point of view - this bug can be closed.