BUG#22504 load data infile sql statement in replication architecture get error
Leonard Zhou authored
The problem is issued because we set wrong start position and stop position of query string into binlog.
That two values are stored as part of head info of query string.
When we parse binlog, we first get position values then get the query string according position values.
But seems that two values are not calculated correctly after the parse of Yacc.

We don't want to touch so much of yacc because it may influence other codes.
So just add one space after 'INTO' key word when parsing.
This can easily resolve the problem.

mysql-test/suite/rpl/r/rpl_loaddatalocal.result:
  Test result
mysql-test/suite/rpl/t/rpl_loaddatalocal.test:
  Test case
sql/log_event.cc:
  Add space after 'INTO'.
b42c29cf
Name Last commit Last update
.bzr-mysql merged addendum to bug 39920 to 5.1-bugteam
BUILD Merge the bashism removal from 5.0 up to 5.1-build
BitKeeper Merge trift2.:/MySQL/M51/mysql-5.1
Docs Makefile.am:
client merge of bug 26724 to 5.1-bugteam
cmd-line-utils merged 5.0-bugteam to 5.1-bugteam
config/ac-macros Fix Bug#32831: libmysql should be built with all charsets
dbug Bug#38522: 5 seconds delay when closing application using embedded server
extra Bug#41612: resolve_stack_dump does not decode 5.1 stack trace
include Merge from bugteam team tree.
libmysql Merge into dev tree.
libmysql_r Makefile.am:
libmysqld Fix merge error, mysqltest.cc should be mysqltest.c
man Bug#37098 Get rid of "Installed (but unpackaged)" files in the RPM build
mysql-test BUG#22504 load data infile sql statement in replication architecture get error
mysys merging
netware Auto-merge up from 5.0
plugin Use pkglibdir to simplify pkgplugindir, and fix the path in a
pstack Makefile.am, configure.in:
regex Fix for server bug experienced in Maria (wrong "Truncated incorrect <var_name>
scripts Auto-merge 5.1-build -> 5.1-bugteam
server-tools merge
sql-bench A fix for Bug#41528
sql-common Bug#42146 - DATETIME fractional seconds parse error
sql BUG#22504 load data infile sql statement in replication architecture get error
storage
strings
support-files
tests
unittest
vio
win
zlib
.bzrignore
.cvsignore
CMakeLists.txt
COPYING
EXCEPTIONS-CLIENT
INSTALL-SOURCE
INSTALL-WIN-SOURCE
Makefile.am
README
configure.in
This is a release of MySQL, a dual-license SQL database server.
MySQL is brought to you by the MySQL team at MySQL AB.

License information can be found in these files:
- For GPL (free) distributions, see the COPYING file and
  the EXCEPTIONS-CLIENT file.
- For commercial distributions, see the LICENSE.mysql file.


For further information about MySQL or additional documentation, see:
- The latest information about MySQL: http://www.mysql.com
- The current MySQL documentation: http://dev.mysql.com/doc

Some manual sections of special interest:

- If you are migrating from an older version of MySQL, please read the
  "Upgrading from..." section first!
- To see what MySQL can do, take a look at the features section.
- For installation instructions, see the Installing and Upgrading chapter.
- For the new features/bugfix history, see the Change History appendix.
- For the currently known bugs/misfeatures (known errors) see the Problems
  and Common Errors appendix.
- For a list of developers and other contributors, see the Credits
  appendix.

A local copy of the MySQL Reference Manual can be found in the Docs
directory in GNU Info format.  You can also browse the manual online or
download it in any of several formats at the URL given earlier in this
file.

************************************************************

IMPORTANT:

Bug or error reports should be sent to http://bugs.mysql.com.