mariadb/sql
Tatiana A. Nurnberg fe7baacaff Bug#35981: ALTER EVENT causes the server to change the PRESERVE option.
If [NOT] PRESERVE was not given, parser always defaulted to NOT
PRESERVE, making it impossible for the "not given = no change"
rule to work in ALTER EVENT. Leaving out the PRESERVE-clause
defaults to NOT PRESERVE on CREATE now, and to "no change" in
ALTER.

mysql-test/r/events_2.result:
  show that giving no PRESERVE-clause to ALTER EVENT
  results in no change. show that giving no PRESERVE-clause
  to CREATE EVENT defaults to NOT PRESERVE as per the docs.
  Show specifically that this is also handled correctly when
  trying to ALTER EVENTs into the past.
mysql-test/t/events_2.test:
  show that giving no PRESERVE-clause to ALTER EVENT
  results in no change. show that giving no PRESERVE-clause
  to CREATE EVENT defaults to NOT PRESERVE as per the docs.
  Show specifically that this is also handled correctly when
  trying to ALTER EVENTs into the past.
sql/event_db_repository.cc:
  If ALTER EVENT was given no PRESERVE-clause (meaning "no change"),
  we don't know the previous PRESERVE-setting by the time we check
  the parse-data. If ALTER EVENT was given dates that are in the past,
  we don't know how to react, lacking the PRESERVE-setting. Heal this
  by running the check later when we have actually read the previous
  EVENT-data.
sql/event_parse_data.cc:
  Change default for ON COMPLETION to indicate, "not specified."
  Also defer throwing errors when ALTER EVENT is given dates in
  the past but not PRESERVE-clause until we know the previous
  PRESERVE-value.
sql/event_parse_data.h:
  Add third state for ON COMPLETION [NOT] PRESERVE (preserve,
  don't, not specified).
  
  Make check_dates() public so we can defer this check until
  deeper in the callstack where we have all the required data.
sql/sql_yacc.yy:
  If CREATE EVENT is not given ON COMPLETION [NOT] PRESERVE,
  we default to NOT, as per the docs.
2008-09-11 09:51:02 +02:00
..
examples fixed warnings from the fix of 26243 2008-03-29 17:50:46 +02:00
share Manual merge 5.0->5.1 2008-08-06 16:20:41 +02:00
.cvsignore
add_errmsg
authors.h
client_settings.h
CMakeLists.txt Bug#37003 Tests sporadically crashes with embedded server 2008-06-18 13:17:15 -03:00
contributors.h
custom_conf.h
derror.cc
des_key_file.cc
discover.cc
event_data_objects.cc Bug#35577, manual merge mysql-5.0-bugteam -> mysql-5.1-bugteam 2008-07-14 19:43:12 -06:00
event_data_objects.h Bug#35997 Event scheduler seems to let the server crash, if it is embedded. 2008-05-09 09:43:02 +02:00
event_db_repository.cc Bug#35981: ALTER EVENT causes the server to change the PRESERVE option. 2008-09-11 09:51:02 +02:00
event_db_repository.h
event_parse_data.cc Bug#35981: ALTER EVENT causes the server to change the PRESERVE option. 2008-08-18 13:05:51 +02:00
event_parse_data.h Bug#35981: ALTER EVENT causes the server to change the PRESERVE option. 2008-08-18 13:05:51 +02:00
event_queue.cc Bug#35997 Event scheduler seems to let the server crash, if it is embedded. 2008-05-09 09:43:02 +02:00
event_queue.h
event_scheduler.cc
event_scheduler.h
events.cc Merge fix for BUG#35478 into 5.1 2008-07-15 21:46:02 +04:00
events.h
field.cc Silence warning due to unused function. 2008-07-22 14:53:36 -03:00
field.h merge 5.0-bugteam -> 5.1-bugteam 2008-08-28 12:54:50 +03:00
field_conv.cc
filesort.cc Merge fix for BUG#35478 into 5.1 2008-07-15 21:46:02 +04:00
frm_crypt.cc
gen_lex_hash.cc
gstream.cc
gstream.h
ha_ndbcluster.cc fixed warnings and compile errors from the fix for bug 26243 2008-03-29 09:52:16 +02:00
ha_ndbcluster.h
ha_ndbcluster_binlog.cc Merge quad.:/mnt/raid/alik/MySQL/devel/5.1 2008-02-26 19:34:02 +03:00
ha_ndbcluster_binlog.h
ha_ndbcluster_cond.cc fixed warnings and compile errors from the fix for bug 26243 2008-03-29 09:52:16 +02:00
ha_ndbcluster_cond.h Merge mysql.com:/misc/mysql/34749/50-34749 2008-03-10 07:07:56 +01:00
ha_ndbcluster_tables.h
ha_partition.cc Backport of patch for Bug#34604 (from 6.0) 2008-08-20 17:29:14 +02:00
ha_partition.h manual merge of Bug#20129 into 5.1-bugteam 2008-08-11 20:06:08 +02:00
handler.cc Bug #38701: Crash in String::append when inserting duplicate empty strings an uft8 2008-09-05 18:21:59 +03:00
handler.h Bug#20129: ALTER TABLE ... REPAIR PARTITION ... complains that 2008-08-11 20:02:03 +02:00
hash_filo.cc
hash_filo.h
hostname.cc
init.cc Merge zippy.cornsilk.net:/home/cmiller/work/mysql/bug26294/my50-bug26294 2008-04-03 13:14:57 -04:00
item.cc Bug#36086: Auto merge. 2008-09-08 12:04:42 +02:00
item.h Merge from 5.0-bugteam. 2008-08-15 16:42:29 -04:00
item_buff.cc
item_cmpfunc.cc Merge 2008-09-09 20:52:38 +05:00
item_cmpfunc.h Merge 2008-09-05 13:36:02 +05:00
item_create.cc Fix merge problem. 2008-04-10 23:27:24 -04:00
item_create.h
item_func.cc merged 34159 and 37662 5.0-bugteam->5.1-bugteam 2008-07-31 12:50:24 +03:00
item_func.h Merge stella.local:/home2/mydev/mysql-5.1-amain 2008-03-26 10:27:00 +01:00
item_geofunc.cc
item_geofunc.h Fix for Bug#30217: Views: changes in metadata behaviour 2008-02-22 13:30:33 +03:00
item_row.cc Fix for Bug#30217: Views: changes in metadata behaviour 2008-02-22 13:30:33 +03:00
item_row.h Fix for Bug#30217: Views: changes in metadata behaviour 2008-02-22 13:30:33 +03:00
item_strfunc.cc merge 5.0-bugteam --> 5.1-bugteam 2008-07-11 04:52:50 +05:00
item_strfunc.h Fix for Bug#30217: Views: changes in metadata behaviour 2008-02-22 13:30:33 +03:00
item_subselect.cc Bug#37627: Killing query with sum(exists()) or avg(exists()) reproducibly crashes server 2008-07-04 17:02:17 +03:00
item_subselect.h Fix for Bug#30217: Views: changes in metadata behaviour 2008-02-22 13:30:33 +03:00
item_sum.cc Merge magare.gmz:/home/kgeorge/mysql/work/B35298-5.0-bugteam 2008-05-01 14:54:59 +03:00
item_sum.h Merge moonbone.local:/work/27219-5.0-opt-mysql 2008-03-28 18:09:14 +03:00
item_timefunc.cc Fix for Bug#30217: Views: changes in metadata behaviour 2008-02-22 13:30:33 +03:00
item_timefunc.h Fix for Bug#30217: Views: changes in metadata behaviour 2008-02-22 13:30:33 +03:00
item_xmlfunc.cc
item_xmlfunc.h
key.cc
lex.h
lex_symbol.h
lock.cc Fix for bug #35732: read-only blocks SELECT statements in InnoDB 2008-04-08 10:20:58 +05:00
log.cc Bug #32709: Assertion failed: trx_data->empty(), file log.cc 2008-09-03 22:04:07 +02:00
log.h Bug #32709: Assertion failed: trx_data->empty(), file log.cc 2008-09-03 22:04:07 +02:00
log_event.cc Bug#36099 replicate-do-db affects replaying RBR events with mysqlbinlog 2008-09-03 13:01:18 +03:00
log_event.h Merging 5.1 into 5.1-rpl-merge 2008-08-27 20:52:44 +02:00
log_event_old.cc BUG#36197: flush tables (or little table cache) can cause crash on slave 2008-05-12 19:50:53 +02:00
log_event_old.h
Makefile.am Bug#37003 Tests sporadically crashes with embedded server 2008-06-18 13:17:15 -03:00
message.mc
mf_iocache.cc
my_decimal.cc
my_decimal.h Merge bk-internal.mysql.com:/home/bk/mysql-5.1 2008-05-20 11:38:17 +04:00
my_lock.c
mysql_priv.h merging fix 2008-08-26 13:32:43 +05:00
mysql_priv.h.pp WL#4380 2008-06-17 17:57:04 +05:30
mysqld.cc merging fix 2008-08-26 13:32:43 +05:00
mysqld_suffix.h
net_serv.cc Bug#26243 mysql command line crash after control-c 2008-03-28 14:02:27 -04:00
nt_servc.cc
nt_servc.h
opt_range.cc Merge BUG#36639 into 5.1 2008-08-25 21:18:22 +04:00
opt_range.h Merge BUG#36639 into 5.1 2008-08-25 21:18:22 +04:00
opt_sum.cc
parse_file.cc
parse_file.h
partition_element.h
partition_info.cc Bug#35305: partition_symlink test failures 2008-03-17 16:11:26 +01:00
partition_info.h Merge pcg5ppc.xiphis.org:/Network/Servers/anubis.xiphis.org/home/antony/work/mysql-5.1 2008-03-14 11:13:54 -07:00
password.c
procedure.cc
procedure.h Merge magare.gmz:/home/kgeorge/mysql/autopush/B26461-5.0-opt 2008-03-21 17:48:28 +02:00
protocol.cc Bug#20129: ALTER TABLE ... REPAIR PARTITION ... complains that 2008-08-11 20:02:03 +02:00
protocol.h
records.cc Merge fix for BUG#35478 into 5.1 2008-07-15 21:46:02 +04:00
repl_failsafe.cc Merge stella.local:/home2/mydev/mysql-5.0-axmrg 2008-03-20 11:33:34 +01:00
repl_failsafe.h
rpl_constants.h
rpl_filter.cc
rpl_filter.h
rpl_injector.cc
rpl_injector.h
rpl_mi.cc
rpl_mi.h
rpl_record.cc
rpl_record.h
rpl_record_old.cc
rpl_record_old.h
rpl_reporting.cc
rpl_reporting.h
rpl_rli.cc Merge stella.local:/home2/mydev/mysql-5.1-amain 2008-03-26 10:27:00 +01:00
rpl_rli.h BUG#13861 - START SLAVE UNTIL may stop 1 evnt too late if 2008-02-27 21:46:06 +04:00
rpl_tblmap.cc Bug#31455 mysqlbinlog don't print user readable info about RBR events 2008-08-20 19:06:31 +05:00
rpl_tblmap.h Bug#31455 mysqlbinlog don't print user readable info about RBR events 2008-08-20 19:06:31 +05:00
rpl_utility.cc BUG#37426: RBR breaks for CHAR() UTF-8 fields > 85 chars 2008-06-30 22:11:18 +02:00
rpl_utility.h Bug#31455 mysqlbinlog don't print user readable info about RBR events 2008-08-20 19:06:31 +05:00
scheduler.cc
scheduler.h
set_var.cc Bug #39106: 2008-09-09 12:19:31 +02:00
set_var.h Bug #39106: 2008-09-09 12:19:31 +02:00
slave.cc BUG#37426: RBR breaks for CHAR() UTF-8 fields > 85 chars 2008-06-30 22:11:18 +02:00
slave.h BUG#37426: RBR breaks for CHAR() UTF-8 fields > 85 chars 2008-06-30 22:11:18 +02:00
sp.cc Bug#35577, manual merge mysql-5.0-bugteam -> mysql-5.1-bugteam 2008-07-14 19:43:12 -06:00
sp.h Remove dead code. 2008-04-08 20:31:40 +04:00
sp_cache.cc A fix for 2008-07-03 23:41:22 +04:00
sp_cache.h A fix for 2008-07-03 23:41:22 +04:00
sp_head.cc Manual merge of mysql-5.0-bugteam -> mysql-5.1-bugteam 2008-08-11 16:44:13 -06:00
sp_head.h Bug#26030 (Parsing fails for stored routine w/multi-statement execution 2008-07-07 10:00:08 -06:00
sp_pcontext.cc Bug#8759 (Stored Procedures: SQLSTATE '00000' should be illegal) 2008-03-21 12:08:04 -06:00
sp_pcontext.h
sp_rcontext.cc
sp_rcontext.h
spatial.cc
spatial.h
sql_acl.cc Bug#36086: SELECT * from views don't check column grants 2008-09-03 16:45:40 +02:00
sql_acl.h Merge magare.gmz:/home/kgeorge/mysql/autopush/B26461-5.0-opt 2008-03-21 17:48:28 +02:00
sql_analyse.cc fixed warnings from the fix of 26243 2008-03-29 17:50:46 +02:00
sql_analyse.h Merge magare.gmz:/home/kgeorge/mysql/autopush/B26461-5.0-opt 2008-03-21 17:48:28 +02:00
sql_array.h
sql_base.cc Bug#36086: SELECT * from views don't check column grants 2008-09-03 16:45:40 +02:00
sql_binlog.cc BUG#38290 valgrind warnings in binlog_base64_flag 2008-08-14 10:42:10 +08:00
sql_bitmap.h
sql_builtin.cc.in
sql_cache.cc Bug#36086: SELECT * from views don't check column grants 2008-09-03 16:45:40 +02:00
sql_cache.h Reverting patch for bug30087 2008-07-17 11:31:22 +02:00
sql_class.cc Bug #32709: Assertion failed: trx_data->empty(), file log.cc 2008-09-03 22:04:07 +02:00
sql_class.h BUG#32709: Assertion failed: trx_data->empty(), file log.cc 2008-09-03 22:52:54 +02:00
sql_client.cc
sql_connect.cc Merge gkodinov@bk-internal.mysql.com:/home/bk/mysql-5.1 2008-03-28 10:41:52 +02:00
sql_crypt.cc
sql_crypt.h
sql_cursor.cc Manual merge of mysql-5.0-bugteam -> mysql-5.1-bugteam 2008-08-11 16:44:13 -06:00
sql_cursor.h
sql_db.cc Bug #38773: DROP DATABASE cause switch to stmt-mode when there are temporary 2008-08-27 10:40:11 +02:00
sql_delete.cc Merge fix for BUG#35478 into 5.1 2008-07-15 21:46:02 +04:00
sql_derived.cc Bug#36086: SELECT * from views don't check column grants 2008-09-03 16:45:40 +02:00
sql_do.cc
sql_error.cc Rename send_eof() to my_eof() for consistency with my_ok() and my_error() 2008-02-19 15:58:08 +03:00
sql_error.h
sql_handler.cc Rename send_eof() to my_eof() for consistency with my_ok() and my_error() 2008-02-19 15:58:08 +03:00
sql_help.cc Merge fix for BUG#35478 into 5.1 2008-07-15 21:46:02 +04:00
sql_insert.cc Merge 2008-09-05 13:36:02 +05:00
sql_lex.cc Bug#35577, manual merge mysql-5.0-bugteam -> mysql-5.1-bugteam 2008-07-14 19:43:12 -06:00
sql_lex.h Manual merge of mysql-5.0-bugteam -> mysql-5.1-bugteam 2008-08-11 16:44:13 -06:00
sql_list.cc
sql_list.h Manual merge of mysql-5.0-bugteam -> mysql-5.1-bugteam 2008-08-11 16:44:13 -06:00
sql_load.cc Merge quad.opbmk:/mnt/raid/alik/MySQL/devel/5.0-bt 2008-03-28 23:54:14 +03:00
sql_locale.cc
sql_manager.cc
sql_map.cc
sql_map.h
sql_olap.cc
sql_parse.cc Merge 2008-09-10 12:44:38 +04:00
sql_partition.cc Bug#20129: ALTER TABLE ... REPAIR PARTITION ... complains that 2008-08-11 20:02:03 +02:00
sql_partition.h
sql_plugin.cc Bug#35807 - INSTALL PLUGIN replicates row-based, but not stmt-based 2008-08-19 17:35:56 +02:00
sql_plugin.h
sql_prepare.cc Bug#35577, manual merge mysql-5.0-bugteam -> mysql-5.1-bugteam 2008-07-14 19:43:12 -06:00
sql_profile.cc Fix a compilation failure of the community tree. 2008-02-19 23:47:15 +03:00
sql_profile.h
sql_rename.cc
sql_repl.cc Additional fix for bug#31455 (rpl decoder) 2008-08-21 16:47:23 +05:00
sql_repl.h Merge dl145h.mysql.com:/data0/mkindahl/mysql-5.0-rpl 2008-03-14 18:38:54 +01:00
sql_select.cc merge 5.0-bugteam -> 5.1-bugteam 2008-08-28 12:54:50 +03:00
sql_select.h
sql_servers.cc Merge fix for BUG#35478 into 5.1 2008-07-15 21:46:02 +04:00
sql_servers.h
sql_show.cc Cherry-pick some changes from innodb-5.1-ss2545 snapshot. Includes fixes for 2008-08-20 16:18:33 -06:00
sql_show.h
sql_sort.h
sql_state.c
sql_string.cc Bug#23924 general_log truncates queries with character set introducers. 2008-02-29 17:56:50 +04:00
sql_string.h Manual merge of mysql-5.0-bugteam -> mysql-5.1-bugteam 2008-08-11 16:44:13 -06:00
sql_table.cc Bug#20129: ALTER TABLE ... REPAIR PARTITION ... complains that 2008-08-11 20:02:03 +02:00
sql_tablespace.cc
sql_test.cc Bug#35997 Event scheduler seems to let the server crash, if it is embedded. 2008-05-09 09:43:02 +02:00
sql_trigger.cc Bug#35577, manual merge mysql-5.0-bugteam -> mysql-5.1-bugteam 2008-07-14 19:43:12 -06:00
sql_trigger.h
sql_udf.cc Bug#37428 Potential security issue with UDFs - linux shellcode execution. 2008-08-25 17:11:59 +05:00
sql_udf.h
sql_union.cc fixes for warnings and compile errors for the fix of bug 26243 2008-03-29 16:12:23 +02:00
sql_update.cc Cherry picking patch for BUG#37051 2008-08-26 18:01:49 +08:00
sql_view.cc Bug#35577, manual merge mysql-5.0-bugteam -> mysql-5.1-bugteam 2008-07-14 19:43:12 -06:00
sql_view.h Merge buzz.(none):/home/davi/mysql-5.0-runtime 2008-02-21 23:21:52 -02:00
sql_yacc.yy Bug#35981: ALTER EVENT causes the server to change the PRESERVE option. 2008-09-11 09:51:02 +02:00
strfunc.cc
structs.h Bug#36443 Server crashes when executing insert when insert trigger on table 2008-06-19 21:47:59 +03:00
table.cc Bug#36086: SELECT * from views don't check column grants 2008-09-03 16:45:40 +02:00
table.h Bug#36086: SELECT * from views don't check column grants 2008-09-03 16:45:40 +02:00
thr_malloc.cc Bug#38296 (low memory crash with many conditions in a query) 2008-08-12 17:05:19 -06:00
time.cc
tzfile.h
tztime.cc Merge zippy.cornsilk.net:/home/cmiller/work/mysql/bug26294/my50-bug26294 2008-04-03 13:19:55 -04:00
tztime.h
udf_example.c
udf_example.def
uniques.cc
unireg.cc Merge a88-113-38-195.elisa-laajakaista.fi:/home/my/bk/mysql-5.1-main 2008-03-28 12:14:27 +02:00
unireg.h Bug#37428 Potential security issue with UDFs - linux shellcode execution. 2008-08-25 17:11:59 +05:00