Before posting this as a bug report, I seek help on the list, also in order to produce a more complete test case in the event this is effectively a bug.

My configuration:
- a master server running in NO_BACKSLASH_ESCAPES sql mode
- a slave server also running in NO_BACKSLASH_ESCAPES sql mode

Replications stops very frequently, slave argues about a "syntax error". I've seen more that one bug report reporting a behaviour similar to this to mysql, but since users provide no feedback they get closed.

My master binlog is full of queries with apostrophe that indeed if you execute them have a syntax error, but since they get written on the binary log they *ARE* executed on the master. Maybe they are executed on the master in a way and then rewritten in a different way in the binary log.

###OUTPUT of the command mysqlbinlog examining the master log portion involved in the error

/*!40019 SET @@session.max_insert_delayed_threads=0*/;
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
DELIMITER /*!*/;
# at 4
#070802 11:56:29 server id 1 end_log_pos 98 Start: binlog v 4, server v 5.0.45-community-log created 070802 11:56:29 at startup
ROLLBACK/*!*/;
# at 98
#070802 12:03:09 server id 1 end_log_pos 1817 Query thread_id=26 exec_time=0 error_code=0
use MIMESIDATA/*!*/;
SET TIMESTAMP=1186048989/*!*/;
SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1/*!*/;
SET @@session.sql_mode=1048576/*!*/;
/*!\C utf8 *//*!*/;
SET @@session.character_set_client=33,@@session.collation_connection=33,@@session.collation_server=33/*!*/; insert DELAYED into MIMESIDATA.ARTICLE_200731 (`IDNEWSPAPER`, `IDORIGINALTOPIC`, `TITLE`, `HEADLINE`, `SUBTITLE`, `TEXT`, `AUTHOR`, `DATE`, `DOWNLOADDATE`, `LINK`, `CACHECOPYLINK`, `BINARYCOPY`, `TEMPBINARYCOPY`, `CROPLINK`, `EDITION`, `PAGE`, MAGAZINEEDITION, SUPPLEMENT, `IDARTICLE`) values (574, 5909, 'SCOPERTE Guardaroba da sogno', NULL, NULL, 'Tra non molto, nel vostro guardaroba, potreste appendere un vestito che si illumina alimentandosi con la luce solare. Il vostro abito sarebbe in grado persino di visualizzare messaggi elettronici come un piccolo schermo. à questa una delle scoperte raggiunte nell\'ambito di un progetto di ricerca che ha l\'obiettivo di portare sul mercato di grande consumo gli «oled» (Organic light emitting diode, ovvero diodo organico a emissione di luce). La tecnologia permette di realizzare display a colori con la capacità di emettere luce propria. Entro tre anni, secondo Alison Walker, ricercatore dell\'Università di Bath (Inghilterra) e coordinatore del progetto, sarà possibile realizzare abiti economici costituiti da display organici. I sottilissimi schermi si basano su pellicole composte da catene di molecole contenenti carbonio in grado di condurre elettricità e trasformarla in luce, e viceversa. La loro caratteristica è quella di essere flessibili: potrebbero essere indossati per veicolare informazioni multimediali. Un\'applicazione di sicuro interessante, ad esempio, per divise di polizia e personale sanitario.', NULL, '2007-08-01 00:00:00', '2007-08-02 12:03:09', NULL, NULL, '200708/01/0574_binpage77.pdf', NULL, NULL, NULL, '77', 'N. 1241 _ LUGLIO -AGOSTO 2007', NULL, 85896377)/*!*/;
DELIMITER ;
# End of log file
ROLLBACK /* added by mysqlbinlog */;
/*!50003 SET [EMAIL PROTECTED]/;

This query blocks the replication, and if you execute it on the command line also the server argues about a sintax error.

It seems that the binary log does not honour the NO_BACKSLASH_ESCAPES mode.

Am I missing something or maybe this could be a bug?
If you need more detailed explanation please ask.

--
Andrea Gangini, Mimesi S.r.l.
[EMAIL PROTECTED]
Tel. 0521/463811
Cell. 320/6657162
Skype: gangio75

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to