diff options
author | unknown <guilhem@mysql.com> | 2003-09-12 17:26:48 +0200 |
---|---|---|
committer | unknown <guilhem@mysql.com> | 2003-09-12 17:26:48 +0200 |
commit | 8cc642d721cf63ae3c784bec9893a3a04732bf31 (patch) | |
tree | 4193928a4a9684a4fae0ff7bc16006071bfa12c1 /sql/mini_client.cc | |
parent | 2a5e1057a21a5616c0a63306b70bb09e3d51919a (diff) | |
download | mariadb-git-8cc642d721cf63ae3c784bec9893a3a04732bf31.tar.gz |
Quick backport of the following bugfix from MySQL 4.0.14.
DO NOT COPY THIS CODE TO 4.0. The bugfix is better in 4.0,
but here in 3.23 we don't want to add a new error code so
we just use ER_EMPTY_QUERY. Bug was:
"If a query was ignored on the slave (because of
@code{replicate-ignore-table} and other similar rules), the slave
still checked if the query got the same error code (0, no error) as on
the master. So if the master had an error on the query (for example,
``Duplicate entry'' in a multiple-row insert), then the slave stopped
and warned that the error codes didn't match. (Bug #797)"
sql/slave.cc:
Ignore ER_EMPTY_QUERY as it is also a marker for "query was ignored because
of replicate-*-table rules".
sql/sql_parse.cc:
In a slave thread, mark an ignored query (because of replicate-*-table rules)
as empty. The caller, exec_event(), will understand this error code as "ignorable
query, don't compare the error codes on master and slave".
Diffstat (limited to 'sql/mini_client.cc')
0 files changed, 0 insertions, 0 deletions