mariadb/sql
unknown 43489240ad Making DROP TABLE IF EXISTS, DROP DATABASE IF EXISTS, DELETE FROM, UPDATE be logged to
binlog even if they changed nothing, and a test for this.
This is useful when users use these commands to clean up their master and slave by issuing
one command on master (assume master and slave have slightly different data for some
reason and you want to clean up both).
Note that I have not changed multi-table DELETE and multi-table UPDATE because their
error-reporting mechanism is more complicated.


mysql-test/r/mysqlbinlog.result:
  result update
mysql-test/r/rpl_charset.result:
  result update
mysql-test/r/rpl_flush_log_loop.result:
  result update
mysql-test/r/rpl_replicate_do.result:
  result update
mysql-test/r/rpl_temporary.result:
  result update
mysql-test/t/mysqlbinlog.test:
  moving SET TIMESTAMP up as DROP shows up in binlog
sql/sql_db.cc:
  DROP DATABASE IF EXISTS is now always logged to binlog, even if db did not exist
sql/sql_delete.cc:
  DELETE FROM t is now always logged to binlog even if no rows deleted (but in this case, only if really no error).
sql/sql_table.cc:
  DROP TABLE IF EXISTS is now always logged to binlog even if table did not exist
sql/sql_update.cc:
  UPDATE is now always logged to binlog even if no rows updated (but in this case, only if really no error).
2004-06-09 16:07:01 +02:00
..
examples Last patch before push into main tree. Updated from code review and final once over. 2004-06-07 02:06:33 -07:00
share Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-4.1 2004-06-03 20:54:46 +04:00
.cvsignore
add_errmsg
client_settings.h Fix for #2126 2003-12-18 18:12:00 +04:00
custom_conf.h
derror.cc Fixed many compiler warnings 2004-04-05 13:56:05 +03:00
des_key_file.cc Merge with 4.0.16 2003-10-07 15:42:26 +03:00
discover.cc After merge fixes 2004-05-24 14:42:34 +03:00
field.cc Support for character set conversion in binary protocol: another go 2004-05-25 02:03:49 +04:00
field.h Added function comment 2004-04-12 01:42:39 +03:00
field_conv.cc ::reset(), HA_FAST_KEY_READ, disable_indexes(), enable_indexes(), start_bulk_insert(), end_bulk_insert() 2004-04-06 21:35:26 +02:00
filesort.cc Changed prototype of killed_ptr() to make it more portable 2004-05-26 19:12:49 +03:00
frm_crypt.cc
gen_lex_hash.cc Formatting changes requested by Monty 2004-04-15 09:17:55 +02:00
gstream.cc Fix for valgrind's warning 2004-03-15 16:32:53 +04:00
gstream.h Fix for valgrind's warning 2004-03-15 16:32:53 +04:00
ha_berkeley.cc key_cmp -> key_cmp_if_same 2004-05-16 14:48:32 +03:00
ha_berkeley.h key_cmp -> key_cmp_if_same 2004-05-16 14:48:32 +03:00
ha_heap.cc typo fixed 2004-05-17 11:10:22 +02:00
ha_heap.h key_cmp -> key_cmp_if_same 2004-05-16 14:48:32 +03:00
ha_innodb.cc Added function innobase_store_binlog_offset_and_flush_log requested by Guilhem 2004-06-08 15:38:22 +03:00
ha_innodb.h key_cmp -> key_cmp_if_same 2004-05-16 14:48:32 +03:00
ha_isam.cc key_cmp -> key_cmp_if_same 2004-05-16 14:48:32 +03:00
ha_isam.h key_cmp -> key_cmp_if_same 2004-05-16 14:48:32 +03:00
ha_isammrg.cc ::reset(), HA_FAST_KEY_READ, disable_indexes(), enable_indexes(), start_bulk_insert(), end_bulk_insert() 2004-04-06 21:35:26 +02:00
ha_isammrg.h caching of queries with isammerge tables forbiden using general way 2004-05-05 21:21:41 +03:00
ha_myisam.cc Proposed fix for bug #3412 (embedded server: prepared statement returns 2004-05-28 15:59:29 +05:00
ha_myisam.h key_cmp -> key_cmp_if_same 2004-05-16 14:48:32 +03:00
ha_myisammrg.cc key_cmp -> key_cmp_if_same 2004-05-16 14:48:32 +03:00
ha_myisammrg.h key_cmp -> key_cmp_if_same 2004-05-16 14:48:32 +03:00
ha_ndbcluster.cc ha_ndbcluster.cc: 2004-05-28 12:09:12 +02:00
ha_ndbcluster.h Fixed prototype of get_error_message to use String to return error message 2004-05-24 12:35:39 +02:00
handler.cc Merge baker@bk-internal.mysql.com:/home/bk/mysql-4.1 2004-06-05 10:43:22 -07:00
handler.h Merge baker@bk-internal.mysql.com:/home/bk/mysql-4.1 2004-06-05 10:43:22 -07:00
hash_filo.cc
hash_filo.h SCRUM 2003-09-19 14:44:31 +05:00
hostname.cc fix for --open-files-limit and broken query_cache_merge.test 2004-02-20 23:42:06 +01:00
init.cc Portability fixes 2004-04-07 04:33:58 +03:00
item.cc Post review fixes for "SQL Syntax for Prepared Statements". 2004-06-07 12:09:10 +04:00
item.h Post review fixes for "SQL Syntax for Prepared Statements". 2004-06-07 12:09:10 +04:00
item_buff.cc Old style charset() and set_charset() were removed. 2003-08-05 12:52:37 +05:00
item_cmpfunc.cc logging_ok: 2004-05-10 23:19:50 +02:00
item_cmpfunc.h Fixed (portability) bug in handler.h, and tried to silence cast warnings on some platforms. 2004-05-06 19:55:12 +02:00
item_create.cc Merge bk-internal:/home/bk/mysql-4.1/ 2004-03-05 00:20:24 +01:00
item_create.h UNHEX() function 2004-03-04 23:18:54 +01:00
item_func.cc Post review fixes for "SQL Syntax for Prepared Statements". 2004-06-07 12:09:10 +04:00
item_func.h WL#1266 "Separate auto-set logic from TIMESTAMP type." 2004-04-02 10:12:53 +04:00
item_geofunc.cc Windows fixes for VC++ compiler compability 2004-05-05 02:59:17 -03:00
item_geofunc.h Optimized GIS functions 2004-03-04 08:50:37 +02:00
item_row.cc DBUG_ASSERT(fixed == 0) added to fix_fields() 2004-03-17 14:26:26 +02:00
item_row.h Pack of changes about 'cleanup()'-s 2004-01-20 20:55:47 +04:00
item_strfunc.cc Bug #3717 ENCODE returns a character string, not a binary string 2004-06-08 15:36:44 +05:00
item_strfunc.h DBUG_ASSERT(fixed == 1); added to val* 2004-03-18 15:14:36 +02:00
item_subselect.cc keep old engine & JOIN if we changed subquery Item (Bug #3646) 2004-05-07 23:06:11 +03:00
item_subselect.h keep old engine & JOIN if we changed subquery Item (Bug #3646) 2004-05-07 23:06:11 +03:00
item_sum.cc keep old engine & JOIN if we changed subquery Item (Bug #3646) 2004-05-07 23:06:11 +03:00
item_sum.h keep old engine & JOIN if we changed subquery Item (Bug #3646) 2004-05-07 23:06:11 +03:00
item_timefunc.cc Support for character set conversion in binary protocol: another go 2004-05-25 02:03:49 +04:00
item_timefunc.h WL#1266 "Separate auto-set logic from TIMESTAMP type." 2004-04-02 10:12:53 +04:00
item_uniq.cc
item_uniq.h DBUG_ASSERT(fixed == 1); added to val* 2004-03-18 15:14:36 +02:00
key.cc key_cmp -> key_cmp_if_same 2004-05-16 14:48:32 +03:00
lex.h Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-4.1 2004-06-04 05:37:14 +04:00
lex_symbol.h Portability fixes 2004-03-05 19:49:50 +02:00
lock.cc Support for character set conversion in binary protocol: another go 2004-05-25 02:03:49 +04:00
log.cc Implementation of WL#1824 "Add replication of character set variables in 4.1", 2004-06-03 23:17:18 +02:00
log_event.cc Correction to replication of charsets in 4.1: 2004-06-08 19:55:04 +02:00
log_event.h Merge with 4.0 to get fix for mysqlbinlog 2004-02-16 10:15:52 +02:00
Makefile.am Merge baker@bk-internal.mysql.com:/home/bk/mysql-4.1 2004-05-25 14:53:55 -07:00
matherr.c
mf_iocache.cc merge with 4.0 2004-03-16 22:41:30 +02:00
my_lock.c
mysql_priv.h Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-4.1 2004-06-07 23:50:59 +04:00
mysqld.cc Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-4.1 2004-06-07 23:50:59 +04:00
mysqld_suffix.h New MYSQL_SERVER_SUFFIX usage (for easier compilation) 2004-05-25 02:28:44 +03:00
net_serv.cc c++ comment fixed 2004-02-21 14:25:43 +01:00
nt_servc.cc Merge with 4.0 2004-03-25 23:29:45 +02:00
nt_servc.h
opt_range.cc Support for character set conversion in binary protocol: another go 2004-05-25 02:03:49 +04:00
opt_range.h key_cmp -> key_cmp_if_same 2004-05-16 14:48:32 +03:00
opt_sum.cc key_cmp -> key_cmp_if_same 2004-05-16 14:48:32 +03:00
password.c check_scramble_323 shuold ensure that the scramble has the correct length 2004-06-01 23:58:33 +02:00
procedure.cc
procedure.h
protocol.cc Support for character set conversion in binary protocol: another go 2004-05-25 02:03:49 +04:00
protocol.h Support for character set conversion in binary protocol: another go 2004-05-25 02:03:49 +04:00
protocol_cursor.cc Added missing SSL library (Should be in source distribution) 2003-11-28 12:18:13 +02:00
records.cc ::reset(), HA_FAST_KEY_READ, disable_indexes(), enable_indexes(), start_bulk_insert(), end_bulk_insert() 2004-04-06 21:35:26 +02:00
repl_failsafe.cc Portability fixes 2004-05-12 02:38:57 +03:00
repl_failsafe.h
set_var.cc Merge baker@bk-internal.mysql.com:/home/bk/mysql-4.1 2004-06-05 10:43:22 -07:00
set_var.h Implementation of WL#1824 "Add replication of character set variables in 4.1", 2004-06-03 23:17:18 +02:00
slave.cc Merge gbichot@213.136.52.20:/home/bk/mysql-4.1 2004-06-03 23:19:01 +02:00
slave.h Merge with 4.0.19 2004-05-05 17:05:24 +03:00
spatial.cc Merging 2004-06-02 19:17:35 +05:00
spatial.h Merging 2004-05-27 16:32:49 +05:00
sql_acl.cc Merge bk-internal.mysql.com:/home/bk/mysql-4.1 2004-06-02 12:14:36 +03:00
sql_acl.h backport wild_compare fix from 4.1 - bug#3924 2004-05-29 17:52:20 +02:00
sql_analyse.cc Portability fixes 2004-05-12 02:38:57 +03:00
sql_analyse.h
sql_base.cc backport wild_compare fix from 4.1 - bug#3924 2004-05-29 17:52:20 +02:00
sql_bitmap.h Made my_snprintf() behavior snprintf() compatible when printing %x arguments (it should 2004-05-27 17:54:40 +04:00
sql_cache.cc Fix for bug which caused grant.test fail on darwin7.3. We were converting db and table 2004-05-22 23:41:58 +04:00
sql_cache.h merge with 4.0 2004-03-16 22:41:30 +02:00
sql_class.cc Post review fixes for "SQL Syntax for Prepared Statements". 2004-06-07 12:09:10 +04:00
sql_class.h Merged 2004-06-07 12:21:26 +04:00
sql_client.cc merge 2003-12-19 16:34:48 +02:00
sql_crypt.cc Style fixes, comments for 4.1.1 authorization 2003-07-18 18:25:54 +04:00
sql_crypt.h
sql_db.cc Making DROP TABLE IF EXISTS, DROP DATABASE IF EXISTS, DELETE FROM, UPDATE be logged to 2004-06-09 16:07:01 +02:00
sql_delete.cc Making DROP TABLE IF EXISTS, DROP DATABASE IF EXISTS, DELETE FROM, UPDATE be logged to 2004-06-09 16:07:01 +02:00
sql_derived.cc fixed subquery in the FROM clause with parameter (BUG#3020) 2004-04-08 23:28:47 +03:00
sql_do.cc fixed error handling in SET and DO operators (BUG#1484) 2003-10-08 11:19:09 +03:00
sql_error.cc THD::lex now points to THD::main_lex like in 5.0 2003-12-19 20:52:13 +03:00
sql_handler.cc Merge with 4.0, mainly to get changes to windows project files 2004-05-20 00:54:52 +03:00
sql_help.cc after review changes 2004-04-07 13:25:24 +03:00
sql_insert.cc Removed compiler warnings 2004-06-01 23:39:39 +03:00
sql_lex.cc Fix for bug which caused temp_table.test fail on Darwin 7.3 2004-05-24 15:48:19 +04:00
sql_lex.h Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-4.1 2004-06-04 05:37:14 +04:00
sql_list.cc
sql_list.h merge with 4.0 2004-03-16 22:41:30 +02:00
sql_load.cc Fixed crashing bug with alter table when table was in use (Bug #3643) 2004-05-05 12:31:17 +03:00
sql_manager.cc
sql_manager.h
sql_map.cc
sql_map.h
sql_olap.cc false/true -> FALSE/TRUE 2004-03-30 02:32:41 +03:00
sql_parse.cc Post review fixes for "SQL Syntax for Prepared Statements". 2004-06-07 12:09:10 +04:00
sql_prepare.cc SQL Syntax for Prepared Statements: post-merge fixes 2004-06-08 00:43:03 +04:00
sql_rename.cc reverting table list to be able to use it in next PS call (BUG#2811) 2004-04-06 00:10:43 +03:00
sql_repl.cc Optimizations 2004-03-15 12:53:27 +02:00
sql_repl.h Merge with 4.0.18 2004-02-11 00:06:46 +01:00
sql_select.cc fixed mistyping 2004-06-07 01:06:17 +03:00
sql_select.h keep old engine & JOIN if we changed subquery Item (Bug #3646) 2004-05-07 23:06:11 +03:00
sql_show.cc Bug #2077 Japanese characters in enum/default values are reported incorrectly 2004-06-08 14:26:16 +05:00
sql_sort.h
sql_state.c
sql_string.cc sql_string.h: 2004-05-25 16:05:33 +05:00
sql_string.h sql_string.h: 2004-05-25 16:05:33 +05:00
sql_table.cc Making DROP TABLE IF EXISTS, DROP DATABASE IF EXISTS, DELETE FROM, UPDATE be logged to 2004-06-09 16:07:01 +02:00
sql_test.cc WL#1700 - Properly count key_blocks_used and key_blocks_current. 2004-05-03 15:55:21 +02:00
sql_udf.cc Fix for bug#1439 UDF Corruption 2004-03-19 14:35:00 +04:00
sql_udf.h hanged UDF interface to use clear() instead of reset() 2003-08-27 22:30:50 +03:00
sql_union.cc asserting table->file->enable_indexes() in union re-execution 2004-05-21 09:31:28 +02:00
sql_update.cc Making DROP TABLE IF EXISTS, DROP DATABASE IF EXISTS, DELETE FROM, UPDATE be logged to 2004-06-09 16:07:01 +02:00
sql_yacc.yy Merged 2004-06-07 12:21:26 +04:00
stacktrace.c
stacktrace.h
strfunc.cc Merge key cache structures to one 2003-11-20 22:06:25 +02:00
structs.h Merge with 4.0.19 2004-05-05 17:05:24 +03:00
table.cc Merge with 4.0.19 2004-05-05 17:05:24 +03:00
table.h after review PS fixes 2004-04-10 01:14:32 +03:00
thr_malloc.cc
time.cc Fix skipp -> skip once and for all. 2004-06-03 11:52:54 -05:00
udf_example.cc Corrected faulty #if tests in udf_example.cc which made udf_test crash the server on some 2003-12-18 17:46:56 +01:00
uniques.cc Merge with 4.0.17 2003-12-17 17:35:34 +02:00
unireg.cc Allow one to send empty strings with mysql_stmt_send_long_data() 2004-04-28 20:19:50 +03:00
unireg.h MAX_KEY limit doubled (32->64) 2004-04-26 21:07:14 +02:00
watchdog_mysqld