mariadb/mysql-test/t
unknown a7cf92bbce Bug#28729: Field_enum wrongly reported an error while storing an empty string.
ENUM fields internally store their values as integers and may use integer
values as indexes to their values. Invalid values are mapped to zero value.
When storing an empty string the ENUM field fails to find an appropriate value
and tries to convert the provided string to integer. The conversion also
fails and error is returned even if the thd->count_cuted_fields is set to
CHECK_FIELD_IGNORE. This makes the range optimizer wrongly decide that an
impossible range is present.

Now the Field_enum::store() returns error while storing an empty string only
if the thd->count_cuted_fields isn't set to CHECK_FIELD_IGNORE.


sql/field.cc:
  Bug#28729: Field_enum wrongly reported an error while storing an empty string.
  Now the Field_enum::store() returns error while storing an empty string only
  if the thd->count_cuted_fields isn't set to CHECK_FIELD_IGNORE.
mysql-test/r/type_enum.result:
  Added a test case for the bug#28729: Field_enum wrongly reported an error
  while storing an empty string.
mysql-test/t/type_enum.test:
  Added a test case for the bug#28729: Field_enum wrongly reported an error
  while storing an empty string.
2007-05-30 23:28:14 +04:00
..
alias.test
alter_table-big.test
alter_table.test Bug#27507: Wrong DATETIME value was allowed by ALTER TABLE in the NO_ZERO_DATE 2007-05-22 00:22:53 +04:00
analyse.test
analyze.test
ansi.test
archive.test
archive_gis.test
auto_increment.test
backup-master.sh
backup.test
bdb-alter-table-1.test
bdb-alter-table-2-master.opt
bdb-alter-table-2.test
bdb-crash.test
bdb-deadlock.test
bdb-deadlock.tminus
bdb.test
bdb_cache-master.opt
bdb_cache.test
bdb_gis.test
bdb_notembedded.test Bug#22855: 2007-05-17 19:38:34 +03:00
bench_count_distinct.test
bigint.test bug #8663 cant use bigint unsigned as input to cast 2007-05-16 10:12:49 +05:00
binary.test
binlog-master.opt
binlog.test
blackhole.test Merge mysql.com:/home/svoj/devel/mysql/BUG27998/mysql-4.1-engines 2007-05-10 18:14:04 +05:00
bool.test
bootstrap.test
bulk_replace.test
case.test
cast.test Bug #28250: Run-Time Check Failure #3 - The variable 'value' is 2007-05-23 14:43:06 +02:00
check.test
client_xml.test bug#27608 XML output is not well-formed 2007-04-09 17:53:10 +05:00
comments.test
compare.test
compress.test
connect.test
consistent_snapshot.test
constraints.test
count_distinct.test
count_distinct2-master.opt
count_distinct2.test
count_distinct3.test
create.test Fix for: 2007-05-11 20:33:13 +04:00
create_not_windows.test
create_select_tmp.test
csv.test
ctype_big5.test
ctype_collate.test
ctype_cp932.test
ctype_cp932_binlog.test
ctype_cp932_notembedded.test
ctype_cp1250_ch.test
ctype_cp1251.test
ctype_create.test
ctype_eucjpms.test
ctype_euckr.test
ctype_gb2312.test
ctype_gbk.test
ctype_hebrew.test
ctype_latin1.test
ctype_latin1_de-master.opt
ctype_latin1_de.test
ctype_latin2.test
ctype_latin2_ch.test
ctype_many.test
ctype_mb.test
ctype_recoding.test
ctype_sjis.test
ctype_tis620.test
ctype_uca.test
ctype_ucs.test
ctype_ucs2_def-master.opt
ctype_ucs2_def.test
ctype_ucs_binlog.test
ctype_ujis.test
ctype_utf8.test Bug#20095 Changing length of VARCHAR field with UTF8 collation does not truncate values 2007-04-13 10:05:55 +05:00
date_formats-master.opt
date_formats.test Backport of TIME->MYSQL_TIME / Y2K fixset 2007-05-16 10:44:59 +02:00
default.test
delayed.test
delete.test
derived.test
dirty_close.test
disabled.def Disable im_life_cycle in 5.0. 2007-05-14 19:25:03 +04:00
distinct.test Bug #27659: 2007-04-10 16:55:48 +03:00
drop.test
drop_temp_table.test
empty_table.test
endspace.test
errors.test
exampledb.test
execution_constants.test
explain.test
federated.test
federated_archive.test
federated_bug_13118.test
fix_priv_tables.test
flush.test
flush2-master.opt
flush2.test
flush_block_commit.test
flush_block_commit_notembedded.test
flush_read_lock_kill-master.opt
flush_read_lock_kill.test
flush_table.test
foreign_key.test
fulltext.test Merge mysql.com:/home/svoj/devel/mysql/BUG25951/mysql-4.1-engines 2007-04-18 12:39:04 +05:00
fulltext2.test
fulltext_cache.test
fulltext_distinct.test
fulltext_left_join.test
fulltext_multi.test
fulltext_order_by.test
fulltext_update.test
fulltext_var.test
func_compress.test
func_concat.test
func_crypt.test
func_date_add.test Bug#28450: The Item_date_add_interval in select list may fail the field 2007-05-30 00:33:12 +04:00
func_default.test
func_des_encrypt.test
func_encrypt-master.opt
func_encrypt.test
func_encrypt_nossl.test
func_equal.test
func_gconcat.test Merge dl145s.mysql.com:/users/mhansson/mysql/push/bug23856/my50-bug23856 2007-05-22 14:48:49 +02:00
func_group.test Merge mhansson@bk-internal:/home/bk/mysql-5.0-opt 2007-05-16 12:22:20 +03:00
func_if.test
func_in.test
func_isnull.test
func_like.test
func_math.test Fix for bug #24912 "problems with bigint in abs() ceiling() round() truncate() mod()" and a number of related problems: 2007-04-28 20:01:01 +04:00
func_misc.test
func_op.test
func_regexp.test
func_sapdb.test Backport of TIME->MYSQL_TIME / Y2K fixset 2007-05-16 10:44:59 +02:00
func_set.test
func_str.test Bug #27530: 2007-04-11 13:58:16 +03:00
func_system.test
func_test.test
func_time.test
func_timestamp.test
gcc296.test
gis-rtree.test
gis.test
grant.test grant.result, grant.test: 2007-05-12 00:46:07 +04:00
grant2.test
grant3-master.opt
grant3.test
grant_cache.test
greedy_optimizer.test
group_by.test Bug#27874: Non-grouped columns are allowed by * in ONLY_FULL_GROUP_BY mode. 2007-04-24 22:35:57 +04:00
group_min_max.test
handler.test
having.test
heap.test
heap_auto_increment.test
heap_btree.test
heap_hash.test
help.test
im_daemon_life_cycle-im.opt
im_daemon_life_cycle.imtest
im_life_cycle-im.opt
im_life_cycle.imtest
im_options_set.imtest
im_options_unset.imtest
im_utils-im.opt
im_utils.imtest
index_merge.test
index_merge_bdb.test
index_merge_innodb.test
index_merge_innodb2.test
index_merge_ror.test
index_merge_ror_cpk.test
information_schema.test
information_schema_chmod.test
information_schema_db.test
information_schema_inno.test
init_connect-master.opt
init_connect.test
init_file-master.opt
init_file.test
innodb-big.test
innodb-deadlock.test
innodb-lock.test
innodb-master.opt
innodb-replace.test
innodb-ucs2.test
innodb.test Apply innodb-5.0-ss1405 snapshot 2007-04-18 19:36:22 -06:00
innodb_cache-master.opt
innodb_cache.test
innodb_gis.test
innodb_handler.test
innodb_mysql-master.opt
innodb_mysql.test Merge olga.mysql.com:/home/igor/dev-opt/mysql-4.1-opt-bug28272 2007-05-15 13:16:10 -07:00
innodb_notembedded.test
innodb_timeout_rollback-master.opt
innodb_timeout_rollback.test
innodb_unsafe_binlog-master.opt
innodb_unsafe_binlog.test
insert.test A fix and a test case for 2007-05-16 09:51:05 +04:00
insert_notembedded.test
insert_select-binlog.test
insert_select.test
insert_update.test Fixed bug #28000. 2007-05-11 03:17:05 +05:00
join.test Merge magare.gmz:/home/kgeorge/mysql/work/B27531-4.1-opt 2007-05-04 16:47:58 +03:00
join_crash.test
join_nested.test
join_outer.test Fixed bug #28571. Outer join queries with ON conditions over 2007-05-26 10:33:01 -07:00
key.test Bug #28476: force index on a disabled myisam index gives error 124 2007-05-22 15:58:30 +03:00
key_cache-master.opt
key_cache.test
key_diff.test
key_primary.test
keywords.test
kill.test Bug#27563: Stored functions and triggers wasn't throwing an error when killed. 2007-05-23 23:24:16 +04:00
kill_n_check.sh
limit.test
loaddata.test loaddata.result, loaddata.test: 2007-05-09 14:46:11 +04:00
loaddata_autocom_innodb.test
loaddata_autocom_ndb.test
lock.test
lock_multi.test
lock_tables_lost_commit-master.opt
lock_tables_lost_commit.test
log.sh
lowercase_fs_off.test
lowercase_mixed_tmpdir-master.opt Bug #27653: Temp table can't be created if lower_case_table_names=1 and 2007-04-30 23:16:46 +02:00
lowercase_mixed_tmpdir-master.sh Bug #27653: Temp table can't be created if lower_case_table_names=1 and 2007-04-30 23:16:46 +02:00
lowercase_mixed_tmpdir.test Bug #27653: Temp table can't be created if lower_case_table_names=1 and 2007-04-30 23:16:46 +02:00
lowercase_table-master.opt
lowercase_table.test
lowercase_table2.test
lowercase_table3-master.opt
lowercase_table3.test
lowercase_table_grant-master.opt
lowercase_table_grant.test
lowercase_table_qcache-master.opt
lowercase_table_qcache.test
lowercase_view-master.opt
lowercase_view.test
merge.test Merge mysql.com:/home/svoj/devel/mysql/BUG24342/mysql-4.1-engines 2007-04-18 16:22:23 +05:00
metadata.test Bug #28492: subselect returns LONG in >5.0.24a and LONGLONG in <=5.0.24a 2007-05-30 09:55:38 +03:00
mix_innodb_myisam_binlog-master.opt
mix_innodb_myisam_binlog.test
multi_statement-master.opt
multi_statement.test
multi_update-master.opt
multi_update.test
myisam-blob-master.opt
myisam-blob.test
myisam.test Bug #28476: force index on a disabled myisam index gives error 124 2007-05-22 15:58:30 +03:00
mysql.test Update test to work also when --pager does not exist in "mysql" 2007-04-23 12:58:35 +02:00
mysql_client_test.opt
mysql_client_test.test
mysql_delimiter.sql
mysql_delimiter_19799.sql
mysql_delimiter_source.sql
mysql_protocols.test
mysql_upgrade.test Bug #28401 mysql_upgrade Failed with STRICT_ALL_TABLES, ANSI_QUOTES and NO_ZERO_DATE 2007-05-19 18:15:08 +02:00
mysqladmin.test
mysqlbinlog-cp932-master.opt
mysqlbinlog-cp932.test
mysqlbinlog-master.opt
mysqlbinlog.test
mysqlbinlog2.test
mysqlcheck.test
mysqldump-max.test
mysqldump.test Fixed bug #28522: 2007-05-25 17:24:17 +05:00
mysqlshow.test
mysqltest.test Merge pilot.blaudden:/home/msvensson/mysql/mysql-4.1-maint 2007-05-18 12:56:52 +02:00
ndb_alter_table.test
ndb_alter_table2.test
ndb_autodiscover.test
ndb_autodiscover2-master.opt
ndb_autodiscover2.test
ndb_autodiscover3.test
ndb_basic.test Merge perch.ndb.mysql.com:/home/jonas/src/50-work 2007-05-08 08:24:21 +02:00
ndb_bitfield.test
ndb_blob.test
ndb_cache.test
ndb_cache2.test
ndb_cache_multi.test
ndb_cache_multi2.test
ndb_charset.test
ndb_condition_pushdown.test
ndb_config.test
ndb_database.test
ndb_gis.test
ndb_grant.later
ndb_index.test
ndb_index_ordered.test
ndb_index_unique.test
ndb_insert.test ndb_insert.test, ndb_insert.result, ha_ndbcluster.cc: 2007-05-02 10:02:27 +02:00
ndb_limit.test
ndb_load.test
ndb_loaddatalocal.test
ndb_lock.test
ndb_minmax.test
ndb_multi.test
ndb_read_multi_range.test
ndb_rename.test
ndb_replace.test
ndb_restore.test Bug#27775 mediumint auto_increment with ndb_restore 2007-04-13 01:37:24 +02:00
ndb_restore_print.test
ndb_single_user.test Bug #27710 Creating unique index fails during single user mode 2007-04-16 14:07:31 +02:00
ndb_subquery.test
ndb_transaction.test
ndb_trigger.test
ndb_truncate.test
ndb_types.test
ndb_update.test
negation_elimination.test
not_embedded_server-master.opt
not_embedded_server.test
null.test
null_key.test
odbc.test
olap.test Merge olga.mysql.com:/home/igor/mysql-4.1-opt 2007-04-29 18:32:59 -07:00
openssl_1.test Bug#27669 mysqldump: Got error: 2026: SSL connection error when trying to connect 2007-04-11 23:42:53 +02:00
order_by.test
order_fill_sortbuf-master.opt
order_fill_sortbuf.test
outfile.test Merge siva.hindu.god:/home/tsmith/m/bk/50 2007-05-17 14:17:50 -06:00
overflow.test
packet.test
perror.test
preload.test
ps-master.opt
ps.test Merge bk-internal.mysql.com:/home/bk/mysql-5.0-opt 2007-05-18 18:22:38 +02:00
ps_1general.test Cleanup: now that we have Lex_input_stream, finish the transition 2007-05-11 17:26:12 +04:00
ps_2myisam.test
ps_3innodb.test
ps_4heap.test
ps_5merge.test
ps_6bdb.test
ps_7ndb.test
ps_10nestset.test
ps_11bugs.test
ps_grant.test
query_cache.test 4.1 -> 5.0 Manual merge for Bug #27792 2007-05-08 11:24:07 +02:00
query_cache_merge.test
query_cache_notembedded.test
raid.test
range.test
read_only.test
rename.test
repair.test
replace.test
rollback.test
round.test
row.test Merge gshchepa.loc:/home/uchum/work/bk-trees/mysql-4.1-opt-27704 2007-04-20 15:31:33 +05:00
rowid_order_bdb.test
rowid_order_innodb.test
rpl000001-slave.opt
rpl000001.test
rpl000002.test
rpl000004.test
rpl000005.test
rpl000006.test
rpl000008-slave.opt
rpl000008.test
rpl000009-slave.opt
rpl000009.test
rpl000010-slave.opt
rpl000010.test
rpl000011.test
rpl000012.test
rpl000013-slave.opt
rpl000013.test
rpl000015-slave.sh
rpl000015.slave-mi
rpl000015.test
rpl000017-slave.opt
rpl000017-slave.sh
rpl000017.test
rpl000018-master.opt
rpl000018-slave.opt
rpl_alter.test
rpl_auto_increment-master.opt
rpl_auto_increment.test
rpl_auto_increment_11932.test
rpl_change_master.test
rpl_charset.test
rpl_charset_sjis.test
rpl_commit_after_flush.test
rpl_create_database-master.opt
rpl_create_database-slave.opt
rpl_create_database.test
rpl_critical_errors.test BUG#26551 (Aborted query for non-transactional table breaks replication): 2007-04-12 14:00:45 +02:00
rpl_ddl.test
rpl_deadlock-slave.opt
rpl_deadlock.test
rpl_delete_all.test
rpl_do_grant.test
rpl_drop.test
rpl_drop_db.test
rpl_drop_temp-slave.opt
rpl_drop_temp.test
rpl_dual_pos_advance-master.opt
rpl_dual_pos_advance.test
rpl_EE_error.test
rpl_empty_master_crash-master.opt
rpl_empty_master_crash.test
rpl_error_ignored_table-slave.opt
rpl_error_ignored_table.test
rpl_failed_optimize-master.opt
rpl_failed_optimize.test
rpl_flush_log_loop-master.opt
rpl_flush_log_loop-master.sh
rpl_flush_log_loop-slave.opt
rpl_flush_log_loop-slave.sh
rpl_flush_log_loop.test
rpl_flush_tables.test
rpl_free_items-slave.opt
rpl_free_items.test
rpl_get_lock.test
rpl_ignore_grant-slave.opt
rpl_ignore_grant.test
rpl_ignore_revoke-slave.opt
rpl_ignore_revoke.test
rpl_ignore_table-slave.opt
rpl_ignore_table.test
rpl_init_slave-slave.opt
rpl_init_slave.test
rpl_innodb.test
rpl_insert_delayed.test
rpl_insert_id-slave.opt
rpl_insert_id.test
rpl_insert_ignore-slave.opt
rpl_insert_ignore.test
rpl_insert_select.test
rpl_known_bugs_detection-master.opt
rpl_known_bugs_detection.test
rpl_loaddata.test
rpl_loaddata_charset.test
rpl_loaddata_rule_m-master.opt
rpl_loaddata_rule_m.test
rpl_loaddata_rule_s-slave.opt
rpl_loaddata_rule_s.test
rpl_loaddatalocal.test
rpl_locale.test
rpl_log-master.opt
rpl_log-slave.opt
rpl_log.test
rpl_log_pos.test
rpl_many_optimize.test
rpl_master_pos_wait.test
rpl_max_relay_size.test
rpl_misc_functions-slave.sh
rpl_misc_functions.test
rpl_multi_delete-slave.opt
rpl_multi_delete.test
rpl_multi_delete2-slave.opt
rpl_multi_delete2.test
rpl_multi_query.test
rpl_multi_update.test
rpl_multi_update2-slave.opt
rpl_multi_update2.test
rpl_multi_update3.test
rpl_multi_update4-slave.opt
rpl_multi_update4.test
rpl_mystery22.test
rpl_ndb_innodb_trans-slave.opt
rpl_ndb_innodb_trans.test
rpl_openssl.test
rpl_optimize.test
rpl_packet-master.opt
rpl_packet-slave.opt
rpl_packet.test
rpl_ps.test
rpl_redirect.test
rpl_relayrotate-slave.opt
rpl_relayrotate.test
rpl_relayspace-slave.opt
rpl_relayspace.test
rpl_replicate_do-slave.opt
rpl_replicate_do.test
rpl_reset_slave.test
rpl_rewrite_db-slave.opt
rpl_rewrite_db.test
rpl_rotate_logs-master.opt
rpl_rotate_logs-slave.sh
rpl_rotate_logs.slave-mi
rpl_rotate_logs.test
rpl_server_id1.test
rpl_server_id2-slave.opt
rpl_server_id2.test
rpl_session_var.test
rpl_set_charset.test
rpl_skip_error-slave.opt
rpl_skip_error.test
rpl_slave_status.test
rpl_sp-master.opt
rpl_sp-slave.opt
rpl_sp.test
rpl_sp_effects-master.opt
rpl_sp_effects-slave.opt
rpl_sp_effects.test
rpl_sporadic_master-master.opt
rpl_sporadic_master.test
rpl_ssl.test Add replace_result for things that are not tested 2007-04-11 09:06:27 +02:00
rpl_start_stop_slave.test
rpl_temporary.test
rpl_timezone-master.opt
rpl_timezone-slave.opt
rpl_timezone.test
rpl_trigger.test
rpl_trunc_temp.test
rpl_until.test
rpl_user_variables.test
rpl_variables-master.opt
rpl_variables.test
rpl_view-slave.opt
rpl_view.test
schema.test
select.test Bug #19372: 2007-04-10 19:08:08 +03:00
select_found.test
select_safe.test
show_check-master.opt
show_check.test
skip_grants-master.opt
skip_grants.test
skip_name_resolve-master.opt
skip_name_resolve.test
sp-big.test
sp-code.test Bug#26977 exception handlers never hreturn 2007-05-07 10:23:10 +02:00
sp-destruct.test
sp-dynamic.test
sp-error.test
sp-prelocking.test
sp-security.test
sp-threads.test
sp-ucs2.test
sp-vars.test Bug#27415 Text Variables in stored procedures 2007-05-16 14:25:38 +02:00
sp.test Bug #28605: SHOW CREATE VIEW with views using stored_procedures no 2007-05-29 14:45:30 +03:00
sp_notembedded.test
sp_stress_case.test
sp_trans.test added cleanup to some tests 2007-05-18 17:48:44 +02:00
sql_mode.test
ssl.test
ssl_compress.test
ssl_connect.test
status.test
strict.test backport of Bug#11491 Misleading error message if not NULL column set to NULL, SQL mode TRADITIONAL 2007-05-30 17:04:04 +05:00
strict_autoinc_1myisam.test
strict_autoinc_2innodb.test
strict_autoinc_3heap.test
strict_autoinc_4bdb.test
strict_autoinc_5ndb.test
subselect.test Fixed bug #28337: wrong results for grouping queries with correlated 2007-05-16 23:42:10 -07:00
subselect2.test
subselect3.test Merge macbook:mysql/work/B22855-5.0-opt 2007-05-21 10:21:55 +03:00
subselect_gis.test
subselect_innodb.test
subselect_notembedded.test
sum_distinct-big.test
sum_distinct.test
symlink.test
synchronization.test
sysdate_is_now-master.opt
sysdate_is_now.test
system_mysql_db.test
system_mysql_db_fix30020-master.opt
system_mysql_db_fix30020.test
system_mysql_db_fix40123-master.opt
system_mysql_db_fix40123.test
system_mysql_db_refs.test
tablelock.test
temp_table-master.opt
temp_table.test
timezone-master.opt
timezone.test
timezone2.test
timezone3-master.opt
timezone3.test
timezone4-master.opt
timezone4.test
timezone_grant.test
trigger-compat.test
trigger-grant.test
trigger-trans.test
trigger.test Fix for: 2007-05-11 20:33:13 +04:00
truncate.test reverted the fix for Bug#5507 2007-04-17 12:32:01 +02:00
type_binary.test
type_bit.test
type_bit_innodb.test
type_blob.test
type_date.test Backport of TIME->MYSQL_TIME / Y2K fixset 2007-05-16 10:44:59 +02:00
type_datetime.test Merge quadxeon.mysql.com:/benchmarks/ext3/TOSAVE/tsmith/bk/50 2007-05-21 20:50:08 +02:00
type_decimal.test
type_enum.test Bug#28729: Field_enum wrongly reported an error while storing an empty string. 2007-05-30 23:28:14 +04:00
type_float.test
type_nchar.test
type_newdecimal-big.test
type_newdecimal.test Merge bk@192.168.21.1:mysql-5.0-opt 2007-05-21 22:28:50 +05:00
type_ranges.test
type_set.test
type_time.test
type_timestamp.test
type_uint.test
type_varchar.test
type_year.test
udf.test
union-master.opt
union.test
update.test Fix for bug #22364 "Inconsistent "matched rows" when executing UPDATE" 2007-04-23 18:22:33 +04:00
user_limits.test
user_var-binlog.test
user_var.test
utils.sh
varbinary.test
variables-big.test Bug #27322 failure to allocate transaction_prealloc_size causes crash 2007-04-12 18:03:26 -04:00
variables.test Bug#22648 LC_TIME_NAMES: Setting GLOBAL has no effect 2007-04-09 17:58:56 +05:00
view.test Merge gleb.loc:/home/uchum/work/bk/mysql-5.0-opt 2007-05-30 14:34:52 +05:00
view_grant.test
view_query_cache.test
wait_for_process.sh
wait_for_socket.sh
wait_timeout-master.opt
wait_timeout.test
warnings-master.opt
warnings.test
windows.test Bug #27811: 2007-04-23 17:15:51 +03:00
xa.test