~mysql/mysql-server/mysql-next-mr-bugfixing

Viewing all changes in revision 3378.

  • Committer: Magne Mahre
  • Date: 2010-11-10 11:26:45 UTC
  • Revision ID: magne.mahre@oracle.com-20101110112645-e3gfx6kw5b0p3zkj
Bug #53373 Comments are not properly removed from the 
           pre-processed query buffer.

Preprocessing comments with embedded SQL, the "/*!<sql>*/"
style, failed to provide correct SQL.  The preprocessed
output is used in the statement replication subsystem,
and in some cases, the SQL statement sent to the slave was
not functionally equivalent to the one executed on the
master. 

The C (and C++) programming language states that a
long ("/* ... */") comment in the input should be 
preprocessed and replaced by a single space character 
in the output.   This behaviour is also adopted by this
fix.  To reduce the number of affected test cases, this
space is only inserted when either the preceding or following
character is not a whitespace (i.e a whitespace duplication
removal)


expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: