mariadb/mysql-test/suite/binlog/r
Alexander Barkov 9bfde897c3 MDEV-11360 Dynamic SQL: DEFAULT as a bind parameter
This patch adds DEFAULT as a possible dynamic SQL parameter, e.g.:
  EXECUTE IMMEDIATE 'INSERT INTO t1 (column) VALUES(?)' USING DEFAULT;
  EXECUTE IMMEDIATE 'UPDATE t1 SET column=?' USING DEFAULT;
and for similar PREPARE..EXECUTE queries.

This is done for symmetry with the STMT_INDICATOR_DEFAULT indicator in
the client-server PS protocol.

The changes include:
- Allowing DEFAULT as a possible option in execute USING clause (sql_yacc.yy)
- Adding "virtual bool Item::save_in_param(THD *thd, Item_param *param)",
  because "normal" items (that have real values) and Item_default_value
  have now different actions when assigning itself as an Item_param value.
- Fixing switch() statements in a few Item_param methods not to have "default",
  because it was easy to forget to add a new "case" when adding a new XXX_VALUE
  value into the enum Item_param::enum_item_param_state.
  This is important, as we'll be adding new values soon, e.g. for MDEV-11359.
  Removing "default" helped to find and report bugs MDEV-11361 and MDEV-11362,
  because DECIMAL_VALUE is obviously not properly handled in some cases.
2016-11-27 18:21:18 +04:00
..
binlog_base64_flag.result
binlog_bug23533.result
binlog_bug36391.result
binlog_checkpoint.result
binlog_checksum.result
binlog_commit_wait.result
binlog_database.result
binlog_delete_and_flush_index.result
binlog_dmls_on_tmp_tables_readonly.result
binlog_drop_if_exists.result
binlog_format_switch_in_tmp_table.result
binlog_grant.result
binlog_implicit_commit.result
binlog_incident.result
binlog_index.result
binlog_innodb.result
binlog_innodb_row.result
binlog_ioerr.result
binlog_killed.result
binlog_killed_simulate.result
binlog_max_extension.result
binlog_mdev342.result
binlog_mdev717.result
binlog_mixed_cache_stat.result
binlog_mixed_load_data.result
binlog_mysqlbinlog-cp932.result
binlog_mysqlbinlog2.result
binlog_mysqlbinlog_base64.result
binlog_mysqlbinlog_row.result
binlog_mysqlbinlog_row_innodb.result
binlog_mysqlbinlog_row_myisam.result
binlog_mysqlbinlog_row_trans.result
binlog_old_versions.result
binlog_query_filter_rules.result
binlog_row_annotate.result
binlog_row_binlog.result
binlog_row_cache_stat.result
binlog_row_ctype_cp932.result
binlog_row_ctype_ucs.result
binlog_row_drop_tbl.result
binlog_row_drop_tmp_tbl.result
binlog_row_insert_select.result
binlog_row_mix_innodb_myisam.result
binlog_row_mysqlbinlog_db_filter.result
binlog_row_mysqlbinlog_options.result
binlog_row_mysqlbinlog_verbose.result
binlog_server_id.result
binlog_sf.result
binlog_spurious_ddl_errors.result
binlog_sql_mode.result
binlog_start_comment.result
binlog_statement_insert_delayed.result
binlog_stm_binlog.result
binlog_stm_blackhole.result
binlog_stm_cache_stat.result
binlog_stm_ctype_cp932.result
binlog_stm_ctype_ucs.result
binlog_stm_do_db.result
binlog_stm_drop_tbl.result
binlog_stm_drop_tmp_tbl.result
binlog_stm_insert_select.result
binlog_stm_mix_innodb_myisam.result
binlog_stm_ps.result
binlog_stm_row.result
binlog_stm_unsafe_warning.result
binlog_stm_user_variables.result
binlog_switch_inside_trans.result
binlog_tmp_table.result
binlog_trigger.result
binlog_truncate_innodb.result
binlog_truncate_kill.result
binlog_truncate_myisam.result
binlog_unsafe.result
binlog_variables_log_bin.result
binlog_variables_log_bin_index.result
binlog_variables_relay_log.result
binlog_variables_relay_log_index.result
binlog_write_error.result
binlog_xa_recover.result
load_data_stm_view.result
temptable_uservar_disconnect-7938.result