mariadb/sql
unknown 8746a25554 Fix for BUG#2527 "Multi-Table Delete - Not Replication use replicate-wild-do-table"
(as long as replicate-*-table rules were defined, multi-table DELETE was never
replicated by the slave).


sql/sql_parse.cc:
  For a multi-table DELETE, there are two lists of tables:
  - 'tables' contains the tables in the FROM. They have 'updating==0'.
  - 'thd->lex.auxilliary_table_list.first' contains the tables between the DELETE and the FROM. They have 'updating==1'.
  So the bug was that the slave only tests 'tables' and as all its elements have updating==0,
  tables_ok() always returns 0.
  So for a multi DELETE the slave now tests the 2nd list too.
  I started with the other tip of the sausage: I thought of changing multi DELETE to use
  only one list (given that 'updating' can be used to separate it in two when needed)
  (with one list we wouldn't need to change the slave code), but finally hit the unicity
  check in add_table_to_list() which started to return ER_NONUNIQ_TABLE (logical).
2004-01-29 19:22:29 +01:00
..
share Completion of fix for BUG#2121 "Inadequate message "check permissions on master.info"": 2004-01-06 14:01:49 +01:00
.cvsignore
add_errmsg
cache_manager.cc
cache_manager.h
convert.cc
custom_conf.h
derror.cc
des_key_file.cc Replaced deprecated since OpenSSL 0.9.7 des_ calls and types with 2003-09-12 22:33:43 +04:00
field.cc Code cleanup 2003-12-18 01:13:52 +02:00
field.h A fix (bug #2335: Inconsistancy with handling of Years and NOW() function). 2004-01-11 14:12:46 +04:00
field_conv.cc Optimized old patches 2003-07-01 14:38:38 +03:00
filesort.cc Some small portability fixes. 2003-12-30 13:14:21 +02:00
frm_crypt.cc
gen_lex_hash.cc merged 2003-03-13 13:44:03 +01:00
ha_berkeley.cc Some small portability fixes. 2003-12-30 13:14:21 +02:00
ha_berkeley.h Mark that strings may change on index only reads (for BDB tables). 2004-01-29 15:16:48 +01:00
ha_heap.cc Portability fix when using -DBIG_TABLES 2002-11-14 12:21:36 +02:00
ha_heap.h Fixes for valgrind 2003-04-23 21:52:16 +03:00
ha_innodb.cc Some small portability fixes. 2003-12-30 13:14:21 +02:00
ha_innodb.h ha_innodb.h: 2003-07-14 15:53:50 +03:00
ha_isam.cc Some small portability fixes. 2003-12-30 13:14:21 +02:00
ha_isam.h Some small portability fixes. 2003-12-30 13:14:21 +02:00
ha_isammrg.cc Portability fixes for Fortre C++ 5.0 (on Sun) in 32 and 64 bit modes. 2002-11-07 03:54:00 +02:00
ha_isammrg.h Some small portability fixes. 2003-12-30 13:14:21 +02:00
ha_myisam.cc Some small portability fixes. 2003-12-30 13:14:21 +02:00
ha_myisam.h Some small portability fixes. 2003-12-30 13:14:21 +02:00
ha_myisammrg.cc Some small portability fixes. 2003-12-30 13:14:21 +02:00
ha_myisammrg.h Some small portability fixes. 2003-12-30 13:14:21 +02:00
handler.cc Some small portability fixes. 2003-12-30 13:14:21 +02:00
handler.h Some small portability fixes. 2003-12-30 13:14:21 +02:00
hash_filo.cc
hash_filo.h Portability fixes for Fortre C++ 5.0 (on Sun) in 32 and 64 bit modes. 2002-11-07 03:54:00 +02:00
hostname.cc Fixes for Netware 2003-01-28 08:38:28 +02:00
init.cc Added option --read-only (Thanks to Markus Benning) 2003-05-19 12:01:38 +03:00
item.cc Extend max_allowed_packet to 2G in mysql and mysqldump (Bug #2105) 2003-12-14 06:39:52 +02:00
item.h Extend max_allowed_packet to 2G in mysql and mysqldump (Bug #2105) 2003-12-14 06:39:52 +02:00
item_buff.cc
item_cmpfunc.cc cleanup: if there is return from if-part, we don't need else statement 2003-12-10 22:26:31 +03:00
item_cmpfunc.h Fix for the bug #2231: string column, INDEX+LIKE, don't take the ESCAPE character. 2003-12-30 19:23:38 +04:00
item_create.cc CURRENT_USER() and "access denied" error messages now report hostname exactly as it was specified in the GRANT command (with wildcards, that is) 2003-04-29 00:15:18 +02:00
item_create.h Fix problem in MIN/MAX optimisation (from last patch) 2003-02-07 17:57:07 +02:00
item_func.cc cleanup: if there is return from if-part, we don't need else statement 2003-12-10 22:26:31 +03:00
item_func.h fix for bug #1993 'bit functions do not return unsigned values' 2003-12-10 17:30:37 +03:00
item_strfunc.cc Mark that strings may change on index only reads (for BDB tables). 2004-01-29 15:16:48 +01:00
item_strfunc.h Fix for bug#1944 'Function RPad() sometimes produce unexpected result' 2003-12-04 14:12:01 +04:00
item_sum.cc cleanup: if there is return from if-part, we don't need else statement 2003-12-10 22:26:31 +03:00
item_sum.h Post-review fixes for bug #1790 'BIT_AND() result in GROUP BY different when 2003-12-02 19:39:51 +03:00
item_timefunc.cc WL#1175: more default_week_formats for iso compatibility 2003-12-07 15:10:21 +04:00
item_timefunc.h Bugfix for #614 2003-06-11 20:09:37 +05:00
item_uniq.cc
item_uniq.h Fixed some varnings from valgrind 2003-08-20 16:25:44 +03:00
key.cc Proper fix for bug with BLOB in MIN/MAX 2004-01-19 23:44:39 +01:00
lex.h Portability fixes (mostly test suite) 2003-12-16 13:20:17 +02:00
lex_symbol.h
lock.cc Merge to get fix for LOCK TABLES + DROP TABLE in another thread 2003-03-07 01:20:56 +02:00
log.cc Fix for BUG#2045 "Sending SIGHUP to mysqld crashes it if running with --log-bin". 2003-12-08 16:18:25 +01:00
log_event.cc Fix for BUG#2542 "If slave ignores a query it may make the next LOAD DATA INFILE fail": 2004-01-28 15:26:01 +01:00
log_event.h Fix for BUG#2045 "Sending SIGHUP to mysqld crashes it if running with --log-bin". 2003-12-08 16:18:25 +01:00
Makefile.am - added $(EXEEXT) to gen_lex_hash generation/execution to fix a build 2003-06-20 15:19:51 +02:00
matherr.c
mf_iocache.cc ChangeSet 1.1625 was faulty as regards sql/mf_iocache.cc and LOAD DATA LOCAL replication tests 2003-03-02 18:20:32 +01:00
mini_client.cc Merge with 3.23 (only comment changes) 2003-11-17 16:16:56 +02:00
mini_client.h
my_lock.c Fixes for Netware 2003-01-28 08:38:28 +02:00
mysql_priv.h Some small portability fixes. 2003-12-30 13:14:21 +02:00
mysqld.cc BUG#2428 "--old-rpl-compat is broken": 2004-01-18 17:51:20 +01:00
net_pkg.cc Fixed multi-table-delete for InnoDB tables 2003-02-17 02:14:37 +02:00
net_serv.cc vio ssl structure renames (to get rid of ending _) 2003-08-27 02:51:39 +03:00
nt_servc.cc Extend max_allowed_packet to 2G in mysql and mysqldump (Bug #2105) 2003-12-14 06:39:52 +02:00
nt_servc.h Added optional NT service and fix the TZ variable bug 2002-10-16 21:51:03 -02:00
opt_ft.cc Add new user variables for tuning memory usage: 2003-10-11 22:00:24 +03:00
opt_ft.h Add new user variables for tuning memory usage: 2003-10-11 22:00:24 +03:00
opt_range.cc An improvement of the fix for the bug #2231: string column, 2004-01-08 12:24:36 +04:00
opt_range.h Add new user variables for tuning memory usage: 2003-10-11 22:00:24 +03:00
opt_sum.cc Proper fix for bug with BLOB in MIN/MAX 2004-01-19 23:44:39 +01:00
password.c - renamed "rnd" to "my_rnd" as the name was too generic (and is an exported 2003-03-18 22:14:02 +01:00
procedure.cc
procedure.h
records.cc Fix autoincrement for signed columns (Bug #1366) 2003-12-12 22:26:58 +02:00
repl_failsafe.cc code cleanup after some reasoning 2003-12-09 20:49:48 +01:00
repl_failsafe.h Clearer error message when one forgot to grant REPLICATION SLAVE : 2003-03-08 18:53:32 +01:00
set_var.cc Merge 2003-12-30 13:16:49 +02:00
set_var.h SET CHARACTER SET DEFAULT didn't work (Bug #462) 2003-06-29 12:58:43 +03:00
slave.cc Fix for BUG#2452 "Empty LOAD DATA INFILE failes with the master in 3.23.x": 2004-01-20 15:41:22 -05:00
slave.h Portability fix 2003-11-02 16:38:27 +02:00
sql_acl.cc Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-4.0 2003-12-16 11:12:40 +01:00
sql_acl.h SHOW GRANTS hided real grants when grants on both column and table (Bug 654) 2003-06-23 20:03:59 +03:00
sql_analyse.cc cleanup: if there is return from if-part, we don't need else statement 2003-12-10 22:26:31 +03:00
sql_analyse.h merge with 3.23 to get corrected error message files and rename of files in mysql-test 2003-02-26 00:22:35 +02:00
sql_base.cc Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-4.0 2003-12-16 11:12:40 +01:00
sql_cache.cc Add cast to remove compiler warning 2003-12-10 12:03:54 +02:00
sql_cache.h support of more then 255 tables dependence in query cache (fixed BUG#930) 2003-07-30 14:59:56 +03:00
sql_class.cc 4 small items in this: 2003-10-31 23:20:23 +01:00
sql_class.h Some small portability fixes. 2003-12-30 13:14:21 +02:00
sql_crypt.cc - renamed "rnd" to "my_rnd" as the name was too generic (and is an exported 2003-03-18 22:14:02 +01:00
sql_crypt.h
sql_db.cc Some small portability fixes. 2003-12-30 13:14:21 +02:00
sql_delete.cc Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-4.0 2003-12-16 11:12:40 +01:00
sql_do.cc
sql_handler.cc BUG#2304 - HANDLER and tables in non-current db 2004-01-13 12:31:25 +01:00
sql_insert.cc Some small portability fixes. 2003-12-30 13:14:21 +02:00
sql_lex.cc Added missing (char*) casts in bzero calls. 2003-07-03 01:08:34 +02:00
sql_lex.h Cleaner implementation if INSERT ... SELECT with same tables 2003-07-03 11:55:36 +03:00
sql_list.cc Don't install signal handler for SIGINT by default 2003-06-10 21:42:29 +03:00
sql_list.h Cleaner implementation if INSERT ... SELECT with same tables 2003-07-03 11:55:36 +03:00
sql_load.cc BUG#2428 "--old-rpl-compat is broken": 2004-01-18 17:51:20 +01:00
sql_manager.cc Portability fixes for Fortre C++ 5.0 (on Sun) in 32 and 64 bit modes. 2002-11-07 03:54:00 +02:00
sql_manager.h
sql_map.cc
sql_map.h
sql_olap.cc New multi-table-update code 2002-11-29 16:40:18 +02:00
sql_parse.cc Fix for BUG#2527 "Multi-Table Delete - Not Replication use replicate-wild-do-table" 2004-01-29 19:22:29 +01:00
sql_rename.cc Some small portability fixes. 2003-12-30 13:14:21 +02:00
sql_repl.cc Fix for BUG#1870 2003-11-18 17:31:17 +01:00
sql_repl.h BUG#2428 "--old-rpl-compat is broken": 2004-01-18 17:51:20 +01:00
sql_select.cc Fixed bug in IN() optimization 2004-01-19 23:10:01 +01:00
sql_select.h Fixes for valgrind 2003-04-23 21:52:16 +03:00
sql_show.cc Some small portability fixes. 2003-12-30 13:14:21 +02:00
sql_sort.h
sql_string.cc a proper fix for the bug #2298 Trailing whitespace inconsistently handled in WHERE clause. 2004-01-22 18:05:47 +04:00
sql_string.h
sql_table.cc Some small portability fixes. 2003-12-30 13:14:21 +02:00
sql_test.cc Safety fix to detect multiple calls to my_thread_end() 2003-10-16 20:55:15 +03:00
sql_udf.cc Add new user variables for tuning memory usage: 2003-10-11 22:00:24 +03:00
sql_udf.h
sql_union.cc sql_union.cc: 2003-08-20 20:16:37 +03:00
sql_update.cc Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-4.0 2003-12-16 11:12:40 +01:00
sql_yacc.yy BUG#2304 - HANDLER and tables in non-current db 2004-01-13 12:31:25 +01:00
stacktrace.c - Fixed URL to Using_stack_trace.html (the old one still works, but gets 2003-03-05 12:42:10 +01:00
stacktrace.h
structs.h Fixed multi-table-delete for InnoDB tables 2003-02-17 02:14:37 +02:00
table.cc Mark that strings may change on index only reads (for BDB tables). 2004-01-29 15:16:48 +01:00
table.h Fix autoincrement for signed columns (Bug #1366) 2003-12-12 22:26:58 +02:00
thr_malloc.cc
time.cc Fix autoincrement for signed columns (Bug #1366) 2003-12-12 22:26:58 +02:00
udf_example.cc Update mysql-test results after merge 2002-09-18 02:21:29 +03:00
uniques.cc Fix for bug #1980 2003-12-02 21:05:40 +03:00
unireg.cc Call my_sync() after all data is written to .frm file 2003-11-02 15:55:02 +02:00
unireg.h Fix for BUG#1686 2003-10-29 14:23:35 +01:00
watchdog_mysqld